From 27f6bfaf2e9255bc0334c7306a17f3771bb40411 Mon Sep 17 00:00:00 2001 From: dotnet Date: Fri, 13 Oct 2023 13:10:55 -0400 Subject: [PATCH] Fix resize mode typo. --- gelbooru_poster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gelbooru_poster.py b/gelbooru_poster.py index d86a2b2..42af01b 100644 --- a/gelbooru_poster.py +++ b/gelbooru_poster.py @@ -98,7 +98,7 @@ class BotInstance: image = Image.open(BytesIO(image_request.content)) if image.width > 2048: - image = image.resize((2048, int(image.height * (2048 / image.width))), Image.Resampling.LANCZOS) + image = image.resize((2048, int(image.height * (2048 / image.width))), Image.LANCZOS) # Apply JPEG compression image = image.convert('RGB') image.save("image.jpg", optimize=True, quality=90)