From 802aae644f74a95c9fde3e661a7496a0fd172d32 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 6 Aug 2022 16:17:53 -0700 Subject: [PATCH] Use pil lanczos. --- etiquette/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etiquette/helpers.py b/etiquette/helpers.py index 5795c05..807b732 100644 --- a/etiquette/helpers.py +++ b/etiquette/helpers.py @@ -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(