[reportlab-users] problem with PIL 1.1.7 and ReportLab 2.2

Bill Janssen janssen at parc.com
Thu Dec 10 13:45:57 EST 2009


I think this is a PIL bug. Thanks for pointing me in this direction.

Bill

% python
Python 2.5.1 (r251:54863, Feb 6 2009, 19:02:12)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

>>> import Image

>>> Image.VERSION

'1.1.7'

>>> im = Image.open("/u/extensions/vCardParser/vcardimage.png")

>>> im.mode

'RGBA'

>>> im.size

(200, 138)

>>> im.split()

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Python/2.5/site-packages/PIL/Image.py", line 1497, in split
if self.im.bands == 1:
AttributeError: 'NoneType' object has no attribute 'bands'

>>>




More information about the reportlab-users mailing list