Some Exif tags cannot be written while they are writable

Bug #587326 reported by Wil Bergman
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Phatch
New
Undecided
Unassigned

Bug Description

L.S.

try to use Phatch as an alternative to exiftool (specially the "vangnet" function)

To change the following Exif tags, but that was not allowed.
Exiftools does allow them, so they are writable

Error 0:Kan niet actie Tag Schrijven toepassen op beeld 'Me.jpg' in map:
/home/wil/Pictures

Tag "Exif_Image_Software" is niet schrijfbaar.

Action:{'fields': {'Tag (Exif, Iptc)': u'Exif_Image_Software',
'Value': u'TEST',
'enabled': 'yes'},
'label': 'Write Tag'}

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/actions/write_tag.py", line 49, in apply
info[tag] = value
File "/usr/share/phatch/phatch/core/pil.py", line 329, in setitem
self.assert_writable(tag)
File "/usr/share/phatch/phatch/core/pil.py", line 409, in assert_writable
raise NotWritableTagError(_('Tag "%s" is not writable.') % tag)
NotWritableTagError: Tag "Exif_Image_Software" is niet schrijfbaar.
*
Error 1:Kan niet actie Tag Schrijven toepassen op beeld 'Me.jpg' in map:
/home/wil/Pictures

u'Onmogelijk om tag "Iptc_Application2_Recordversion" weg te schrijven:\nInvalid dataset name ‘Recordversion\’'

Action:{'fields': {'Tag (Exif, Iptc)': u'Iptc_Application2_Recordversion',
'Value': u'2',
'enabled': 'yes'},
'label': 'Write Tag'}

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/actions/write_tag.py", line 49, in apply
info[tag] = value
File "/usr/share/phatch/phatch/core/pil.py", line 349, in setitem
% (_('Impossible to write tag "%s"') % tag, message))
KeyError: u'Onmogelijk om tag "Iptc_Application2_Recordversion" weg te schrijven:\nInvalid dataset name ‘Recordversion\’'
*

Revision history for this message
Wil Bergman (wil-bergman) wrote :
Revision history for this message
flusi100 (flusi100) wrote :

My manual lenses are not properly detected by my camera. Overwriting the tag "Exif_Photo_LensModel" using the Image Inspector works fine, but phatch returns an error:

Error 0:Can not apply action Write Tag on image 'DSC08918.ARW' in folder:
/home/martin/tmp/phatch

Format ARW does not support overwriting "Exif_Photo_LensModel".

Action:{'fields': {'Tag (Exif, Iptc)': u'Exif_Photo_LensModel',
            'Value': u'Takumar 50mm F1.4',
            '__enabled__': 'yes'},
 'label': 'Write Tag'}

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/actions/write_tag.py", line 49, in apply
    info[tag] = value
  File "/usr/share/phatch/phatch/core/pil.py", line 324, in __setitem__
    self.assert_writable(tag)
  File "/usr/share/phatch/phatch/core/pil.py", line 429, in assert_writable
    % {'format': self['format'], 'tag': tag})
NotWritableTagError: Format ARW does not support overwriting "Exif_Photo_LensModel".
*

------------------------------------------------------
content of phatch-file:

{'actions': [{'fields': {'Tag (Exif, Iptc)': u'Exif_Photo_LensModel',
                         'Value': u'Takumar 50mm F1.4',
                         '__enabled__': 'yes'},
              'label': 'Write Tag'},
             {'fields': {'File Name': u'<filename>',
                         'In': u'<folder>/phatch',
                         '__enabled__': 'yes'},
              'label': 'Save Tags'}],
 'description': '',
 'version': '0.2.7'}

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.