All my pictures are both in .jpg and .nef format with jpg in a root directory and nef in a subdirectory.
How can I copy metadata from dsc_*.jpg to \NEF\dsc_*.nef with a batch file ?
Is it possible ?
Thanks.
Olivier
Hi Olivier,
The exiftool command to do this is:
exiftool -tagsfromfile %d/NEF/%f.nef -ext jpg DIR
This will copy all information from NEF to JPG for all JPG images in directory DIR.
Just a few notes:
i) Add the -r option if you also want to process images in sub-directories.
ii) Add -all:all after %d/NEF/%f.nef if you want to keep the information in its original location. (ie. avoid translating makernote information to more standard formats.) Try it both ways and see what is best for you.
iii) Change all % to %% if you use this command in a Windows .bat file. (In this case, you probably also want to set DIR to %1.)
- Phil
Thank you Phil.
I'll try both ways.
Olivier
Am I reading this right? Wasn't the question how to copy metadata from jpg to nef?
You're right. But that direction doesn't make sense. One should only be copying metadata from NEF to JPG.
- Phil