Error writing metadata after copying all from another image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyexiv2 |
Fix Released
|
High
|
Olivier Tilloy |
Bug Description
Using the code below to copy the information from one photo to another should result in all of the meta data being copied to the destination image.
Instead the following exception is raised when writeMetadata() is called.
Traceback (most recent call last):
File "/home/
dest.writeMetad
RuntimeError: TIFF array element tag 43 has wrong type
-----Start of code-----
import pyexiv2
src_file='SRC.JPG'
dest_file=
2
src = pyexiv2.
src.readMetadata()
dest = pyexiv2.
dest.readMetadata()
l=src.exifKeys() + src.iptcKeys()
for i in l:
try: # work around for another bug
dest[i] =src[i]
except:
print "Problems copying %s keyword" %i
dest.writeMetad
Changed in phraymd: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in pyexiv2: | |
status: | In Progress → Fix Committed |
Changed in pyexiv2: | |
status: | Fix Committed → Fix Released |
no longer affects: | phraymd |
@Rob: what does the destination file contains in the first place? Is it an empty or non existing file? Another image file that already contains metadata? If so, can you please attach it here as well?
What is the "other bug" the try... except block in your sample code is working around?