Hi,

It appears there is no place to report bugs regarding PIL or even
contact the developers so it seems that here is the best place to report
this kind of thing. 

There is a bug when you stream png files into PIL.ImageFile.Parser() any
kind of image operation you try and perform on the file will fail with 
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.6/dist-packages/PIL/Image.py", line 961, in
histogram
    self.load()
  File "/usr/lib/python2.6/dist-packages/PIL/ImageFile.py", line 189, in
load
    s = read(self.decodermaxblock)
  File "/usr/lib/python2.6/dist-packages/PIL/PngImagePlugin.py", line
365, in load_read
    return self.fp.read(bytes)
  File "/usr/lib/python2.6/dist-packages/PIL/ImageFile.py", line 300, in
read
    data = self.data[pos:pos+bytes]
TypeError: 'NoneType' object is unsubscriptable

More info can be found on the bug report i published to launchpad.net
(without any proper bug reporting mechanism, this was the next best
thing) including a patch to fix the bug for now. 
https://bugs.edge.launchpad.net/ubuntu/+source/python-imaging/+bug/383228

-- 
Gordon Allott <m...@gordallott.com>

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig

Reply via email to