So reading the readme, I expected the following code:
import png
R = 10
G = 255
B = 0
color = [[ (R,G,B), (R,G,B), (R,G,B) ],
[ (R,G,B), (R,G,B), (R,G,B) ]]
png.from_array(color, 'RGB').save("small_smiley.png")
to output a 2x3 image.
However, I get assertion errors (no description provided).
Is there something I'm doing wrong? Is there a way to convert a 2D python list into an image file that's easier than messing with PyPNG?
Thanks