From db6aca6ffb0895efa99ef102ecf9e3e4313e6b44 Mon Sep 17 00:00:00 2001 From: hkc Date: Mon, 8 Jul 2024 22:28:58 +0300 Subject: [PATCH] FUCK PIL --- async-bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/async-bot.py b/async-bot.py index 1d19f7a..1da6f66 100644 --- a/async-bot.py +++ b/async-bot.py @@ -72,7 +72,7 @@ class AsyncBotManager: alpha = im.convert("L").filter(ImageFilter.MaxFilter(5)) im.putalpha(alpha) if negative: - im = ImageChops.invert(im) + im = ImageChops.invert(im.convert("RGBA")).convert("LA") return im.copy() def get_font(self, font_name: str, size: int = 8):