Use pil lanczos.

This commit is contained in:
voussoir 2022-08-06 16:17:53 -07:00
parent c159dbbc0f
commit 802aae644f
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -227,7 +227,7 @@ def generate_image_thumbnail(filepath, width, height) -> PIL.Image:
only_shrink=True,
)
if (new_width, new_height) != (image_width, image_height):
image = image.resize((new_width, new_height))
image = image.resize((new_width, new_height), PIL.Image.LANCZOS)
if image.mode == 'RGBA':
background = imagetools.checkerboard_image(