Unable to copy metadata when source image contains multi-value short tags
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyexiv2 |
New
|
Undecided
|
Olivier Tilloy |
Bug Description
This is related to bug 256875 "Unable to add/modify multiple value short tags"
Steps to re-create bug
-------
>>> import pyexiv2
>>> src = pyexiv2.
>>> src.readMetadata()
>>> dest = pyexiv2.
>>> dest.readMetadata()
>>> src.copyMetadat
Expected outcome
-------
Exif data copied from src to dest
Actual outcome
-------
The following exception is raised:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/
destImage[key] = self[key]
File "/usr/lib64/
self.
File "/usr/lib64/
value = int(tagValue)
ValueError: invalid literal for int() with base 10: '(2,30, 907, 605)'
Example source file attached
Changed in pyexiv2: | |
assignee: | nobody → osomon |
This is actually exactly the same bug as 256875 as the copyMetadataTo routine just invokes the __setitem__ method. I've attached a patch to the other bug.
This report should probably be closed as a duplicate.