Remove getsize method of PIL in favor of getbbox
This commit is contained in:
1 parent
5e56cb8c7a
commit
d37850520b
3 files changed
+5
-5
No files matched your search
@@ -62,7 +62,7 @@ class PMLOutput(OutputFormatPlugin):
|
||||
im = Image.open(io.BytesIO(item.data))
|
||||
else:
|
||||
im = Image.open(io.BytesIO(item.data)).convert('P')
|
||||
im.thumbnail((300,300), Image.ANTIALIAS)
|
||||
im.thumbnail((300,300), Image.LANCZOS)
|
||||
|
||||
data = io.BytesIO()
|
||||
im.save(data, 'PNG')
|
||||
|
||||
Reference in new issue
Block a user