phatch-dev team mailing list archive
-
phatch-dev team
-
Mailing list archive
-
Message #00430
[Bug 256875] Re: Unable to add/modify multiple value short tags
To skip the Canon tags is quite an unsatisfactory workaround. I have temporarilly used a wrapper aroumd the exiv2 command line tool and I never had the problem of copying the exif keys.
What I do not really understand if we skip conversion, it then afterwards cannot write the metadata. It only has to convert the ugly tuples into strings if I understand correcty. The weird things actually is that pyexiv2 after reading the metadata itself converts the stuff into tuples.
I hope Olivier can fix this soon, because it is quite a blocker.
** Changed in: intipunku
Status: New => Triaged
** Changed in: intipunku
Assignee: (unassigned) => Mark Baas (mark-baas123)
--
Unable to add/modify multiple value short tags
https://bugs.launchpad.net/bugs/256875
You received this bug notification because you are a member of Phatch
Developers, which is subscribed to Phatch.
Status in IntiPunku photo manager: Triaged
Status in Phatch = Photo & Batch!: Triaged
Status in pyexiv2, a python binding to exiv2: Confirmed
Bug description:
Steps to re-create bug
-----------------------------
>>> image = pyexiv2.Image("brokenbig.jpg")
>>> image.readMetadata()
>>> image['Exif.CanonCs.Lens'] = (55,18,1)
Expected outcome
------------------------
Exif data field added/modified:
Actual outcome
--------------------
The following exception is raised:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.5/site-packages/pyexiv2.py", line 595, in __setitem__
self.__exifTagsDict[key] = ConvertToPythonType(tagFamily, typeName, str(value))
File "/usr/lib64/python2.5/site-packages/pyexiv2.py", line 355, in ConvertToPythonType
value = int(tagValue)
ValueError: invalid literal for int() with base 10: '(55, 18, 1)'
>>>