From a89ef45c66569b542dc59a1fc735f66e4a11f876 Mon Sep 17 00:00:00 2001 From: Danny Sag Date: Sat, 23 Dec 2023 09:43:42 +1030 Subject: [PATCH] Changing ANTIALIAS to LANCZOS in thumbnail() Fixes #2065 --- mezzanine/core/templatetags/mezzanine_tags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mezzanine/core/templatetags/mezzanine_tags.py b/mezzanine/core/templatetags/mezzanine_tags.py index d9b15be9f0..76fafcc322 100644 --- a/mezzanine/core/templatetags/mezzanine_tags.py +++ b/mezzanine/core/templatetags/mezzanine_tags.py @@ -439,7 +439,7 @@ def thumbnail( to_size = (to_width, to_height) to_pos = (left, top) try: - image = ImageOps.fit(image, to_size, Image.ANTIALIAS, 0, to_pos) + image = ImageOps.fit(image, to_size, Image.LANCZOS, 0, to_pos) image = image.save(thumb_path, filetype, quality=quality, **image_info) # Push a remote copy of the thumbnail if MEDIA_URL is # absolute.