Read PNG as 8-bit
@@ -65,7 +65,7 @@ def palette_convert(inp, out, palette_file):
inp, palette_file = palette_file, inp
reader = png.Reader(file=palette_file)
- w, h, rows, info = reader.asDirect()
+ w, h, rows, info = reader.asRGB8()
channels = info["planes"]
if not inp:
rows = list(rows)
