Public bug reported:

Trying to apply my watermark, in every case it says "Cannot be applied:
'transparency'"

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.

** Affects: phatch (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: transparency watermark

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1585313

Title:
  phatch cannot apply transparency in watermarks

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/phatch/+bug/1585313/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to