Re: [Image-SIG] PIL 1.1.6 ImageFile.Parser destroys data for PngImagePlugin

2009-11-20 Thread Alexey Borzenkov
Hi Fredrik, On Wed, Nov 4, 2009 at 6:43 PM, Fredrik Lundh wrote: > Thanks for the detailed analysis.  The fix in 1.1.7 is slightly > different from the one you propose: > >    http://hg.effbot.org/pil-2009-raclette/changeset/fe4688f15fed/ > > Not sure why the code considers it important to close

Re: [Image-SIG] PIL 1.1.6 ImageFile.Parser destroys data for PngImagePlugin

2009-11-04 Thread Fredrik Lundh
Thanks for the detailed analysis. The fix in 1.1.7 is slightly different from the one you propose: http://hg.effbot.org/pil-2009-raclette/changeset/fe4688f15fed/ Not sure why the code considers it important to close the file at that point; I'll take another look at a look at the code and the

[Image-SIG] PIL 1.1.6 ImageFile.Parser destroys data for PngImagePlugin

2009-11-04 Thread Nils Olaf de Reus
I am experiencing inconvenience from the behaviour of ImageFile.py in PIL 1.1.6 when attempting to read in a PNG image. The method I see documented to retreive an image through ImageFile is by invoking close() on the ImageFile.Parser, like this. >>> import ImageFile >>> import urllib >>> >>> f =