plugin XEP-0054: fixed bad image resizing

This commit is contained in:
Goffi 2013-01-07 23:08:45 +01:00
commit 44a042df6d

View file

@ -239,7 +239,7 @@ class XEP_0054():
raise exceptions.DataError("Can't open image") raise exceptions.DataError("Can't open image")
if img.size != (64, 64): if img.size != (64, 64):
img.resize((64, 64)) img = img.resize((64, 64))
img_buf = StringIO() img_buf = StringIO()
img.save(img_buf, 'PNG') img.save(img_buf, 'PNG')