From 2f88d81fa5cec6e4b08f187b119982d4e9ac73fe Mon Sep 17 00:00:00 2001 From: owl Date: Tue, 18 Feb 2025 18:05:07 +0700 Subject: [PATCH] change resampling method --- tgbot/shit/render.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tgbot/shit/render.py b/tgbot/shit/render.py index 5769389..ad47748 100644 --- a/tgbot/shit/render.py +++ b/tgbot/shit/render.py @@ -73,7 +73,7 @@ HEIGHT = 10 def image_to_string(image_file): img = Image.open(image_file) - img = img.resize((WIDTH, HEIGHT), Image.Resampling.LANCZOS) + img = img.resize((WIDTH, HEIGHT), Image.Resampling.NEAREST) img = img.convert("1")