From 847f70b6945c3af7fe5fceb9af9a00580a733c99 Mon Sep 17 00:00:00 2001 From: Turamarth14 Date: Sun, 2 Jul 2023 06:43:58 +0200 Subject: [PATCH] Update html_generator.py (#2954) With version 10.0.0 of Pillow the constant Image.ANTIALIAS has been removed. Instead Image.LANCZOS should be used. --- modules/html_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/html_generator.py b/modules/html_generator.py index 6c83dbe7..509fe70b 100644 --- a/modules/html_generator.py +++ b/modules/html_generator.py @@ -129,7 +129,7 @@ def generate_4chan_html(f): def make_thumbnail(image): image = image.resize((350, round(image.size[1] / image.size[0] * 350)), Image.Resampling.LANCZOS) if image.size[1] > 470: - image = ImageOps.fit(image, (350, 470), Image.ANTIALIAS) + image = ImageOps.fit(image, (350, 470), Image.LANCZOS) return image