how to copy metadata from .jpg to .nef

Started by lerihto, June 16, 2010, 01:47:05 PM

Previous topic - Next topic

lerihto

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

Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

lerihto

Thank you Phil.
I'll try both ways.

Olivier

sjDelaney

Am I reading this right?  Wasn't the question how to copy metadata from jpg to nef?

Phil Harvey

You're right.  But that direction doesn't make sense.  One should only be copying metadata from NEF to JPG.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).