From 710669cd1c493826721ce348626e992d6520e790 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Thu, 30 Mar 2023 20:51:22 +0300 Subject: [PATCH] fix --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index aaead51..25eab72 100644 --- a/main.py +++ b/main.py @@ -66,12 +66,12 @@ async def check_updates(): elif post.file.ext in ('png', 'jpg'): file_resized = BytesIO() im = Image.open(file) - im.thumbnail((2048, 2048), Image.ANTIALIAS) + im.thumbnail((2048, 2048), Image.LANCZOS) im.save(file_resized, format='JPEG') im.name = 'file.jpg' im.seek(0) await bot.send_photo(int(os.environ['SEND_CHAT']), - im, + file_resized, caption=caption) await redis.sadd('e621:sent', post.id) except exceptions.TelegramAPIError as e: