1.1.7 attempts to read and decompress the file's ICC tag, while 1.1.6 completely ignored that. I seem to remember fixing something related to this after the 1.1.7b1 release, but I'll double-check before cutting the final branch (any day soon).
</F> On Fri, Aug 21, 2009 at 4:04 PM, Joel Verhagen<joel.verha...@gmail.com> wrote: > I'm using PIL version 1.1.7b1 and when setting the mode of this image to RGB > (http://img197.imageshack.us/img197/8961/111294.png) > > img = Image.open('111294.png') > img.convert('RGB') > > And it throws the following error: > > Traceback (most recent call last): > File "F:\4scrape\ScrapeDex\swatch prominence\test.py", line 44, in > <module> > img = Image.open(image) > File "C:\Python26\lib\site-packages\PIL\Image.py", line 1965, in open > return factory(fp, filename) > File "C:\Python26\lib\site-packages\PIL\ImageFile.py", line 91, in > __init__ > self._open() > File "C:\Python26\lib\site-packages\PIL\PngImagePlugin.py", line 321, in > _open > s = self.png.call(cid, pos, len) > File "C:\Python26\lib\site-packages\PIL\PngImagePlugin.py", line 112, in > call > return getattr(self, "chunk_" + cid)(pos, len) > File "C:\Python26\lib\site-packages\PIL\PngImagePlugin.py", line 193, in > chunk_iCCP > self.im_info["icc_profile"] = zlib.decompress(s[i+2:]) > zlib.error: Error -5 while decompressing data > > When doing this same process with PIL 1.1.6 final, no error is thrown. The > image link above is the exact copy of the failing image, so you can use it > for diagnostics. > -- > Joel Verhagen > http://www.wintallo.com > > _______________________________________________ > Image-SIG maillist - image-...@python.org > http://mail.python.org/mailman/listinfo/image-sig > > _______________________________________________ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig