<div>Hello All,</div><div><br></div><div>Interesting, with a freshly opened tiff, I can't call split until I do something else. I found that I can call .getdata and then split works.<br>What is the correct pattern?</div>
<div><br></div><div><br></div><div>In [28]: green.split()</div><div>---------------------------------------------------------------------------</div><div>AttributeError Traceback (most recent call last)</div>
<div><br></div><div>.../lib/python2.6/site-packages/PIL/Image.pyc in split(self)</div><div> 1495 "Split image into bands"</div><div> 1496 </div><div>-> 1497 if self.im.bands == 1:</div><div>
1498 ims = [self.copy()]</div><div> 1499 else:</div><div><br></div><div>AttributeError: 'NoneType' object has no attribute 'bands'</div><div><br></div><div>In [29]: green.getdata()</div>
<div>Out[29]: <ImagingCore object at 0x100429950></div><div><br></div><div>In [30]: green.split()</div><div>Out[30]: </div><div>(<PIL.Image.Image image mode=L size=512x512 at 0x102D54560>,</div><div> <PIL.Image.Image image mode=L size=512x512 at 0x102D56638>,</div>
<div> <PIL.Image.Image image mode=L size=512x512 at 0x102D56758>)</div><div><br></div><div><br></div><div>Skylar</div>