Oopsie, forgot to convert to RGBA

This commit is contained in:
Casey 2024-07-04 12:28:52 +03:00
parent 13c628e00f
commit f378f15c6c
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 1 additions and 1 deletions

View File

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