Hello all :) I recently started using exiftool to copy the XMP data from my original set of images to an edited set. The images in the original file and in the edited file have identical names, however the images in the edited file have an added identifier:
original/IMG_01.jpg to edited/IMG_01_1.jpg
This is what I attempted to copy the XMP data:
exiftool -tagsFromFile original\%f.jpg -xmp edited\%f_1.jpg
but I get this error:
Warning: Error opening file - original\%f_1.jpg
Error: File not found - edited/%f_1.jpg
0 image files updated
1 files weren't updated due to errors
I'd appreciate if someone can help me with the correct syntax! TIA ;D
The %f can't be used as part of the name of the files you want to process. What you'll need to do is remove two characters from the end of the %f value when used after the -TagsFromFile option (https://exiftool.org/exiftool_pod.html#tagsFromFile-SRCFILE-or-FMT). You'll find the docs on how to edit the % tokens values in the Advanced features section under the -w (-TextOut) option (https://exiftool.org/exiftool_pod.html#w-EXT-or-FMT--textOut).
Try this
exiftool -ext jpg -tagsFromFile original\%-.2f.jpg -xmp edited\