From 07d927ef4dde7322c4c62b2b47df6be6d6dc005b Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Thu, 4 Jul 2024 22:06:03 +0300 Subject: [PATCH] fix sticker antialias algo --- bots/modules/stickers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bots/modules/stickers.py b/bots/modules/stickers.py index ebb01f6..5b3226d 100644 --- a/bots/modules/stickers.py +++ b/bots/modules/stickers.py @@ -37,7 +37,7 @@ class StickersBotModuleConfig(TelegramBotModuleConfig): target_width = 512 else: target_height = 512 - im = im.resize((target_width, target_height), Image.ANTIALIAS) + im = im.resize((target_width, target_height), Image.LANCZOS) with tempfile.NamedTemporaryFile(suffix='.png') as f: im.quantize(method=2).save(f, 'png') f.seek(0)