This commit is contained in:
Casey 2024-07-08 22:28:58 +03:00
parent 08dec86316
commit db6aca6ffb
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 1 additions and 1 deletions

View File

@ -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):