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