This commit is contained in:
Nikos Kouremenos 2006-02-17 21:52:22 +00:00
parent 5b6adbef4a
commit fd6b2dda67
1 changed files with 2 additions and 0 deletions

View File

@ -942,6 +942,8 @@ class Interface:
os.remove(path_to_original_file)
pixbuf, typ = gtkgui_helpers.get_pixbuf_from_data(photo_decoded,
want_type = True)
if pixbuf is None:
return
if typ not in ('jpeg', 'png'):
gajim.log.debug('gtkpixbuf cannot save other than jpeg and png formats. saving %s\'avatar as png file (originaly %s)' % (jid, typ))
typ = 'png'