From aa15e285fd7ecfaca949bba516ef09c201aa60f9 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 6 Aug 2022 16:25:28 -0700 Subject: [PATCH] Use pil lanczos. --- voussoir.net/photography/generate_site.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voussoir.net/photography/generate_site.py b/voussoir.net/photography/generate_site.py index f852cb7..c3c4de6 100644 --- a/voussoir.net/photography/generate_site.py +++ b/voussoir.net/photography/generate_site.py @@ -317,7 +317,7 @@ def make_thumbnail(photo): image = PIL.Image.open(photo.absolute_path) (image_width, image_height) = image.size (width, height) = imagetools.fit_into_bounds(image_width, image_height, 1440, 1440) - image = image.resize((width, height), PIL.Image.ANTIALIAS) + image = image.resize((width, height), PIL.Image.LANCZOS) image.save(small_name.absolute_path, quality=85) print(small_name) return small_name