This shouldn't be too hard to accomplish. A simple:
exiftool -tagsfromfile EDITDDIR/%f.%e ORGDIR
Will copy all
metadata from the files in EDITDIR to corresponding files in ORGDIR, keeping the original file as _original
. If no corresponding file is found in EDITDIR, a warning will be issued and the original will not be updated (which is great in this case).I don't recommend updating all metadata though, just the things you are interested in. This can be done too, just specify the tags you want copied after the -tagsfromfile
option. E.g. to copy only the IPTC metadata, use:
exiftool -tagsfromfile EDITDIR/%f.%e -iptc:all ORGDIR
If you have organised your files in subdirectories, change your current directory to the root dir of the original images and run the following (.
denotes the current directory):
exiftool -r -tagsfromfile EDITDIRROOT/%d/%f.%e -iptc:all .
Finally, this more fancy version of the command will create copies of the the original using the IPTC from the edited files for all edited files into a new location. You need to start this from the EDITDIRROOT.
exiftool -r -tagsfromfile ./%d/%f.%e -srcfile ORGDIRROOT/%d/%f.%e -o NEWROOT/%d/%f.%e -iptc:all .
Hope this works for you