← Back to team overview

ubuntustudio-bugs team mailing list archive

[Bug 1648860] Re: phatch cannot apply watermark on ubuntu 16.10

 

** Description changed:

  Phatch cannot apply watermarks on ubuntu 16.10 anymore:
  
  Error 0:Can not apply action Watermark on image '001-DSC03337_1.jpg' in folder:
  /mnt/Work/balul bobocilor/canon/darktable_exported/bal
  
  Mark: a filename with a valid extension was expected.
  You can only use files with the following extensions:
  bmp, bw, cmyk, cur, dcx, flc, fli, fpx, gbr, gd, gif, ico, im, imt,
  jpe, jpeg, jpg, mcidas, mic, pbm, pcd, pcx, pgm, png, ppm, psd, rgb,
  sun, tga, tif, tiff, xbm, xpm.
  
+ Action:{'fields': {'Horizontal Justification': 'Middle',
+             'Horizontal Offset': '50%',
+             'Mark': u'Watermarkalb650',
+             'Method': u'By Offset',
+             'Offset': u'1  %',
+             'Opacity': u'80',
+             'Orientation': u'Normal',
+             'Position': u'Center',
+             'Vertical Justification': 'Middle',
+             'Vertical Offset': '50%',
+             '__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 100, in apply
+     values = self.values(photo.info)
+   File "/usr/share/phatch/phatch/core/models.py", line 314, in values
+     pixel_fields=pixel_fields, exclude=exclude)
+   File "/usr/share/phatch/phatch/core/models.py", line 93, in values
+     pixel_fields=pixel_fields, exclude=exclude)
+   File "/usr/share/phatch/phatch/lib/formField.py", line 288, in get_fields
+     value = self.get_field(label, info)
+   File "/usr/share/phatch/phatch/lib/formField.py", line 265, in get_field
+     return self._get_field(label).get(info, label)
+   File "/usr/share/phatch/phatch/lib/formField.py", line 404, in get
+     label, test)
+   File "/usr/share/phatch/phatch/lib/formField.py", line 752, in to_python
+     return super(DictionaryReadFileField, self).to_python(x, label, test)
+   File "/usr/share/phatch/phatch/lib/formField.py", line 729, in to_python
+     value = super(ReadFileField, self).to_python(x, label)
+   File "/usr/share/phatch/phatch/lib/formField.py", line 716, in to_python
+     textwrap.fill(', '.join(self.extensions), 70)))
+ ValidationError: Mark: a filename with a valid extension was expected.
+ You can only use files with the following extensions:
+ bmp, bw, cmyk, cur, dcx, flc, fli, fpx, gbr, gd, gif, ico, im, imt,
+ jpe, jpeg, jpg, mcidas, mic, pbm, pcd, pcx, pgm, png, ppm, psd, rgb,
+ sun, tga, tif, tiff, xbm, xpm.
+ *
+ 
  Any ideas?

-- 
You received this bug notification because you are a member of Ubuntu
Studio Bugs, which is subscribed to phatch in Ubuntu.
Matching subscriptions: Ubuntu Studio Bugs
https://bugs.launchpad.net/bugs/1648860

Title:
  phatch cannot apply watermark on ubuntu 16.10

Status in phatch package in Ubuntu:
  New

Bug description:
  Phatch cannot apply watermarks on ubuntu 16.10 anymore:

  Error 0:Can not apply action Watermark on image '001-DSC03337_1.jpg' in folder:
  /mnt/Work/balul bobocilor/canon/darktable_exported/bal

  Mark: a filename with a valid extension was expected.
  You can only use files with the following extensions:
  bmp, bw, cmyk, cur, dcx, flc, fli, fpx, gbr, gd, gif, ico, im, imt,
  jpe, jpeg, jpg, mcidas, mic, pbm, pcd, pcx, pgm, png, ppm, psd, rgb,
  sun, tga, tif, tiff, xbm, xpm.

  Action:{'fields': {'Horizontal Justification': 'Middle',
              'Horizontal Offset': '50%',
              'Mark': u'Watermarkalb650',
              'Method': u'By Offset',
              'Offset': u'1  %',
              'Opacity': u'80',
              'Orientation': u'Normal',
              'Position': u'Center',
              'Vertical Justification': 'Middle',
              'Vertical Offset': '50%',
              '__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 100, in apply
      values = self.values(photo.info)
    File "/usr/share/phatch/phatch/core/models.py", line 314, in values
      pixel_fields=pixel_fields, exclude=exclude)
    File "/usr/share/phatch/phatch/core/models.py", line 93, in values
      pixel_fields=pixel_fields, exclude=exclude)
    File "/usr/share/phatch/phatch/lib/formField.py", line 288, in get_fields
      value = self.get_field(label, info)
    File "/usr/share/phatch/phatch/lib/formField.py", line 265, in get_field
      return self._get_field(label).get(info, label)
    File "/usr/share/phatch/phatch/lib/formField.py", line 404, in get
      label, test)
    File "/usr/share/phatch/phatch/lib/formField.py", line 752, in to_python
      return super(DictionaryReadFileField, self).to_python(x, label, test)
    File "/usr/share/phatch/phatch/lib/formField.py", line 729, in to_python
      value = super(ReadFileField, self).to_python(x, label)
    File "/usr/share/phatch/phatch/lib/formField.py", line 716, in to_python
      textwrap.fill(', '.join(self.extensions), 70)))
  ValidationError: Mark: a filename with a valid extension was expected.
  You can only use files with the following extensions:
  bmp, bw, cmyk, cur, dcx, flc, fli, fpx, gbr, gd, gif, ico, im, imt,
  jpe, jpeg, jpg, mcidas, mic, pbm, pcd, pcx, pgm, png, ppm, psd, rgb,
  sun, tga, tif, tiff, xbm, xpm.
  *

  Any ideas?

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


References