pypng on my platform returns an iterator instead of a sequence of bytes, so have to force pixelData to a list

This commit is contained in:
Rob McMullen 2017-04-29 19:36:01 -07:00
parent f031405e33
commit ffcfab2ca2
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ def main(argv):
width = pngdata[0]
height = pngdata[1]
pixelData = pngdata[2]
pixelData = list(pngdata[2])
byteWidth = width/2+1+1 # TODO: Calculate a power of two for this
niceName = os.path.splitext(pngfile)[0].upper()