Remove getsize method of PIL in favor of getbbox

This commit is contained in:
gryf committed 2025-03-10 18:33:05 +01:00
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')