Comment 0 for bug 532194

Revision history for this message
Stani (stani) wrote : Test suite should not try to edit metadata of png or gif images

actionlist: /home/stani/Desktop/repo/lucid/tests/output/actionlists/delete_tags_Method=One.phatch
Error 0:Can not apply action Delete Tags on image 'bee.png' in folder:
/home/stani/Desktop/repo/lucid/tests/input

Format PNG does not support overwriting "Exif_Image_ImageDescription".

Action:{'fields': {'Method': u'One',
            'Tag': 'Exif_Image_ImageDescription',
            '__enabled__': 'yes'},
 'label': 'Delete Tags'}

Traceback (most recent call last):
  File "/home/stani/Desktop/repo/lucid/phatch/core/api.py", line 617, in apply_action_to_photo
    photo = action.apply(photo, read_only_settings, cache)
  File "/home/stani/Desktop/repo/lucid/phatch/actions/delete_tags.py", line 46, in apply
    del info[tag]
  File "/home/stani/Desktop/repo/lucid/phatch/core/pil.py", line 317, in __delitem__
    self.assert_writable(tag)
  File "/home/stani/Desktop/repo/lucid/phatch/core/pil.py", line 426, in assert_writable
    % {'format': self['format'], 'tag': tag})
NotWritableTagError: Format PNG does not support overwriting "Exif_Image_ImageDescription".