[Image-SIG] PIL 1.1.5 & 1.1.6 'png decoding error'
George Gerber
ggerber at sun.ac.za
Thu Sep 27 11:55:40 CEST 2007
Hi.
PIL 1.1.5 and 1.1.6 cannot load the png:
http://www.ggerber.globesky.com/phd%5Fsite/Stat1Hz_frame_0041.png
I get: "IOError: decoding error when reading image file"
However both versions can load this png:
http://www.ggerber.globesky.com/phd%5Fsite/Stat1Hz_frame_0040.png
Is there a work around for this error?
I would like to work with numpy arrays. Hence using PIL 1.1.6 the code is:
import Image
from numpy import asarray
img = Image.open('C:\Stat1Hz_frame_0041.png')
raw = asarray(img)
Regards
George
More information about the Image-SIG
mailing list