ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: lerihto on June 16, 2010, 01:47:05 PM

Title: how to copy metadata from .jpg to .nef
Post by: lerihto on June 16, 2010, 01:47:05 PM
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
Title: Re: how to copy metadata from .jpg to .nef
Post by: Phil Harvey on June 16, 2010, 02:02:35 PM
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
Title: Re: how to copy metadata from .jpg to .nef
Post by: lerihto on June 16, 2010, 02:42:11 PM
Thank you Phil.
I'll try both ways.

Olivier
Title: Re: how to copy metadata from .jpg to .nef
Post by: sjDelaney on August 20, 2015, 02:56:47 PM
Am I reading this right?  Wasn't the question how to copy metadata from jpg to nef?
Title: Re: how to copy metadata from .jpg to .nef
Post by: Phil Harvey on August 21, 2015, 07:49:57 AM
You're right.  But that direction doesn't make sense.  One should only be copying metadata from NEF to JPG.

- Phil