From c4ea6556bb8afa88aaf99ac63b001d3d7f7cd802 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Fri, 20 Jan 2006 13:58:52 +0000 Subject: [PATCH] 16 kb as max for avatar. to follow: auto resize bigger images --- src/vcard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vcard.py b/src/vcard.py index 07ca60243..cb236012d 100644 --- a/src/vcard.py +++ b/src/vcard.py @@ -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