Skip to content
Snippets Groups Projects
Commit c4ea6556 authored by nkour's avatar nkour
Browse files

16 kb as max for avatar. to follow: auto resize bigger images

parent 61d75230
No related branches found
No related tags found
No related merge requests found
......@@ -202,10 +202,10 @@ class VcardWindow:
f = dialog.get_filename()
f = gtkgui_helpers.decode_filechooser_file_paths((f,))[0]
filesize = os.path.getsize(f) # in bytes
if filesize > 32768: # 32 kb
if filesize > 16384: # 16 kb
dialogs.ErrorDialog(_('The filesize of image "%s" is too large')\
% os.path.basename(f),
_('The file must not be more than 32 kilobytes.')).get_response()
_('The file must not be more than 16 kilobytes.')).get_response()
continue
if self.image_is_ok(f):
done = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment