Re: [Image-SIG] Problem with parsing PNG image

2007-11-08 Thread Fredrik Lundh
Christian Joergensen wrote: > I'm having trouble parsing a PNG image. This snippet should show my problem: > > from PIL import ImageFile > import StringIO > import urllib2 > f = > urllib2.urlopen(urllib2.Request(url='http://www.bold.dk/billeder/art8651.png')) > p = ImageFile.Parser() > p.feed(f.

[Image-SIG] Problem with parsing PNG image

2007-11-07 Thread Christian Joergensen
Hello I'm having trouble parsing a PNG image. This snippet should show my problem: from PIL import ImageFile import StringIO import urllib2 f = urllib2.urlopen(urllib2.Request(url='http://www.bold.dk/billeder/art8651.png')) p = ImageFile.Parser() p.feed(f.read()) im = p.close() output = StringIO