From f378f15c6cf3aeb34a588595d18d94c2e9026d74 Mon Sep 17 00:00:00 2001 From: hkc Date: Thu, 4 Jul 2024 12:28:52 +0300 Subject: [PATCH] Oopsie, forgot to convert to RGBA --- async-bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/async-bot.py b/async-bot.py index 9f83429..7aea545 100644 --- a/async-bot.py +++ b/async-bot.py @@ -113,7 +113,7 @@ async def amain(): mgr.put_image(elem["x"], elem["y"], im) elif elem["type"] == "rgb111": ox, oy = elem["x"], elem["y"] - with Image.open(elem["path"]).convert("RGB") as im: + with Image.open(elem["path"]).convert("RGBA") as im: for y in range(im.height): for x in range(im.width): r, g, b, a = im.getpixel((x, y)) # type: ignore