Exiv2 seems to work quite well with batch operations by keeping any generated derivative files the same root filename with an different extension.
My mission is to draw the meta information from a master jpg file and then apply it to several existing smaller versions of the file. I have...
Photo1.jpg - contains meta information thumb_Photo1.jpg - no meta information sample_Photo1.jpg - no meta information
Right now I use exiv2 to pull the meta information out of Photo1.jpg resulting in a file...
What I would like to do next is apply this metadata to the thumbnail and sample files. With Exiv2 I cannot find a way to make it function with anything other than files with corresponding base names. Thus I can't apply Photo1.xml to thumb_Photo1.jpg, only Photo1.jpg.
For the moment I get around this by making copies of the XML file leaving me with this...
Photo1.jpg - contains meta information Photo1.xml - derived from Photo1.jpg thumb_Photo1.jpg - no meta information thumb_Photo1.xml - copy of Photo1.xml sample_Photo1.jpg - no meta information sample_Photo1.xml - copy of Photo1.xml
With this done I then can run exiv2 to add tags to the thumb and sample jpegs. Afterwards I delete the XML files, leaving me with three files all tagged identically.
While the above works very well, I'm wondering if I have missed an exiv2 option buried deep in the documentation that allows one to tag a JPEG from an XML file of a different base name.