Issue #12 new

bug in PIL 1.1.7 Image.split()

Anonymous created an issue

It looks like there is a bug in in PIL 1.1.7 ( 1.1.6 was OK) giving an error of: object has no attribute 'bands'

Changing the lines 1494 (etc) to the below in "" seems to be a workaround

def split(self): "Split image into bands"


if == 1: ims = [self.copy()] else: ims = [] self.load() for i in range( ims.append(self._new( return tuple(ims)

Comments (1)

  1. Log in to comment