1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-03-02 23:05:51 +01:00

Remove getsize method of PIL in favor of getbbox

This commit is contained in:
2025-03-10 18:33:05 +01:00
parent 5e56cb8c7a
commit d37850520b
3 changed files with 5 additions and 5 deletions

View File

@@ -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')