← Back to team overview

phatch-dev team mailing list archive

[Bug 436595] Re: Actions with Image.blend fail on palette images (e.g. gif)

 

** Changed in: phatch
       Status: Fix Committed => Fix Released

-- 
Actions with Image.blend fail on palette images (e.g. gif)
https://bugs.launchpad.net/bugs/436595
You received this bug notification because you are a member of Phatch
Developers, which is subscribed to Phatch.

Status in Phatch = Photo & Batch!: Fix Released
Status in “phatch” package in Ubuntu: Confirmed

Bug description:
Error 0:Can not apply action Desaturate on image 'chimp.bmp' in folder:
/home/nipun

images do not match

Action:{'fields': {'Amount': u'73', '__enabled__': 'yes'}, 'label': 'Desaturate'}

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/phatch/core/api.py", line 608, in apply_action_to_photo
    photo = action.apply(photo, read_only_settings, cache)
  File "/usr/lib/python2.6/dist-packages/phatch/core/models.py", line 106, in apply
    photo.get_layer().apply_pil(self.pil, **values)
  File "/usr/lib/python2.6/dist-packages/phatch/core/pil.py", line 708, in apply_pil
    self.image = function(self.image, *arg, **keyw)
  File "/usr/lib/python2.6/dist-packages/phatch/actions/desaturate.py", line 31, in grayscale
    grayscaled  = Image.blend(image, grayscaled, amount/100.0)
  File "/usr/lib/python2.6/dist-packages/PIL/Image.py", line 1945, in blend
    return im1._new(core.blend(im1.im, im2.im, alpha))
ValueError: images do not match
*



References