phatch cannot apply transparency in watermarks

Bug #1585313 reported by Miguel SSM - Fotos y Cosas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
phatch (Ubuntu)
New
Undecided
Unassigned

Bug Description

Trying to apply my watermark, in every case it says "Cannot be applied: 'transparency'"
This issue happens in Ubuntu 16.04 after patching the problem with the general appearance of the application.

And the log is the following:

Error 0: Cannot apply Watermark action to picture 'file.JPG' en la carpeta:
/home/miguel/Pictures

'transparency'

Action:{'fields': {'Horizontal Justification': 'Right',
            'Horizontal Offset': u'-5 %',
            'Mark': u'/home/miguel/.local/share/phatch/watermarks/marcabold.gif',
            'Method': u'By Offset',
            'Offset': u'5 %',
            'Opacity': u'60',
            'Orientation': u'Normal',
            'Position': u'Bottom Right',
            'Vertical Justification': 'Bottom',
            'Vertical Offset': u'-5 %',
            '__enabled__': 'yes'},
 'label': 'Watermark'}

Traceback (most recent call last):
  File "/usr/share/phatch/phatch/core/api.py", line 614, in apply_action_to_photo
    photo = action.apply(photo, read_only_settings, cache)
  File "/usr/share/phatch/phatch/core/models.py", line 106, in apply
    photo.get_layer().apply_pil(self.pil, **values)
  File "/usr/share/phatch/phatch/core/pil.py", line 750, in apply_pil
    self.image = function(self.image, *arg, **keyw)
  File "/usr/share/phatch/phatch/actions/watermark.py", line 45, in watermark
    orientation, opacity)
  File "/usr/share/phatch/phatch/lib/imtools.py", line 274, in generate_layer
    mark = convert_safe_mode(open_image(mark))
  File "/usr/share/phatch/phatch/lib/imtools.py", line 826, in convert_safe_mode
    del img.info['transparency']
KeyError: 'transparency'
*

Thanks in advance.

description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.