Fredrik Lundh is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

effbot / pil-2009-raclette http://effbot.org/zone/pil-index.htm

Work repository for PIL 1.1.7 and beyond. The "default" branch should be fairly solid, the other branches less so. For production use, see the pil-117 repository.

Clone this repository (size: 1.6 MB): HTTPS / SSH
hg clone https://bitbucket.org/effbot/pil-2009-raclette
hg clone ssh://hg@bitbucket.org/effbot/pil-2009-raclette

Issues

#12 bug in PIL 1.1.7 Image.split()

Reported anonymously

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"

self.load()

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)

Status: new Responsible: nobody Type: bug Priority: minor
Milestone: raclette-final Component: none Version: pil-1.1.7

Attachments

No attachments added for this issue yet.

Comments and changes

  1. #1 Éric St-Jean

    written

    this is fixed in the master branch, and the fix was backported to 1.1.7 in the debian/ubuntu packages. I've forked pil-117 into https://bitbucket.org/effbot/pil-117/overview and pushed the fix, and have just now issued a pull request.

Add comment / attachment

Verification: Please write the text from the image in the box (letters only)

captcha

Is that you, Humanoid? Is this me?