Message111630
>>> import Image
>>> im = Image.open('whatever')
>>> im.split()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/dist-packages/PIL/Image.py", line 1497, in split
if self.im.bands == 1:
AttributeError: 'NoneType' object has no attribute 'bands'
Bug can be fixed by using getdata before split() :
>>> import Image
>>> im = Image.open('whatever')
>>> im.getdata()
<ImagingCore object at 0x7fad913c0090>
>>> im.split()
(<Image.Image image mode=L size=360x480 at 0x1CAE320>, <Image.Image image mode=L size=360x480 at 0x1CAE368>, <Image.Image image mode=L size=360x480 at 0x1CAE3B0>) |
|
Date |
User |
Action |
Args |
2010-07-26 15:08:32 | Arrnaud.Fabre | set | recipients:
+ Arrnaud.Fabre |
2010-07-26 15:08:32 | Arrnaud.Fabre | set | messageid: <1280156912.66.0.913857583224.issue9383@psf.upfronthosting.co.za> |
2010-07-26 15:08:30 | Arrnaud.Fabre | link | issue9383 messages |
2010-07-26 15:08:30 | Arrnaud.Fabre | create | |
|