bug in PIL 1.1.7 Image.split()

Create issue
Issue #12 new
Former user created an issue

It looks like there is a bug in image.py 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 "Image.py" seems to be a workaround

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


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

Comments (1)

  1. Log in to comment