|
import Image
im = Image.open('a.png')
r,g,b = im.split()
r.show()
------------------------------------------
Traceback (most recent call last):
File "a.py", line 5, in <module>
r,g,b = im.split()
File "/usr/lib/python2.6/site-packages/PIL/Image.py", line 1497, in split
if self.im.bands == 1:
AttributeError: 'NoneType' object has no attribute 'bands' |
|