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: