Merge pull request #1 from robmcmullen/master

pypng on my platform returns an iterator for pixelData
This commit is contained in:
blondie7575 2017-05-01 09:03:06 -07:00 committed by GitHub
commit b1828eaa91

View File

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