plugin XEP-0054: fixed bad image resizing
This commit is contained in:
parent
51a150d99a
commit
44a042df6d
1 changed files with 2 additions and 2 deletions
|
|
@ -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')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue