Opened 14 years ago

Closed 14 years ago

#26393 closed defect (fixed)

PIL 1.1.7 contains a regression from 1.1.6 in Image.split()

Reported by: charles@… Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc:
Port: py26-pil py27-pil

Description

File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/reportlab-2.4-py2.6-macosx-10.6-x86_64.egg/reportlab/pdfbase/pdfdoc.py", line 2140, in loadImageFromSRC
   raw = im.getRGBData()
 File "/Users/cduffy/.hudson/jobs/fanforce/workspace/fanforce-virtualenv/lib/python2.6/site-packages/sx/pisa3/pisa_reportlab.py", line 324, in getRGBData
   self._dataA = PmlImageReader(im.split()[3])
 File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/PIL/Image.py", line 1497, in split
   if self.im.bands == 1:
AttributeError: 'NoneType' object has no attribute 'bands'

See upstream report at http://code.activestate.com/lists/python-image-sig/5994/ and patch at http://hg.effbot.org/pil-2009-raclette/changeset/fb7ce579f5f9

Attachments (1)

patch-image-split.diff (754 bytes) - added by charles@… 14 years ago.
Patch resolving issue

Download all attachments as: .zip

Change History (3)

Changed 14 years ago by charles@…

Attachment: patch-image-split.diff added

Patch resolving issue

comment:1 Changed 14 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to jmr@…
Port: py26-pil py27-pil added
Status: newassigned

Please remember to fill in the Port field and cc the maintainer.

comment:2 Changed 14 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.