Oopsie, forgot to convert to RGBA
This commit is contained in:
parent
13c628e00f
commit
f378f15c6c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue