ExifTool Forum

ExifTool => Archives => Topic started by: Archive on May 12, 2010, 08:54:36 AM

Title: Help with copying exif data and wild cards
Post by: Archive on May 12, 2010, 08:54:36 AM
[Originally posted by louiscar on 2009-05-23 12:31:55-07]

Sorry if this has been asked before but I've not found it.

I am trying to replace exif data that has been removed usually by Lightroom when exporting a jpg.

The situation is that I may create several copies of one file. My naming convention is always to keep the original fname and add to it.

So DSC_3000.nef might have some jpg versions that are DSC_3000_mono.jpg and DSC_3000_v2.jpg

I'd like to find global solution to updating all versions, copying the exif data from the original nef file to all the jpg copies.

I can do this on a spedific file using:

Code:

exiftool -tagsFromFile DSC_3937.nef exif.args  DSC_3937*.jpg

where exif.args has -exif:all in it. Both jpgs will be updated ok

However, I don't quite know how to do this for all nefs in the folder using something similar to:

Code:

exiftool -tagsFromFile %%f.nef -@ exif.args  -ext xmp .

because I seemingly can't wild card the target suffix.

Can someone tell me the correct way to do this?
Title: Re: Help with copying exif data and wild cards
Post by: Archive on May 12, 2010, 08:54:36 AM
[Originally posted by exiftool on 2009-05-23 13:15:28-07]

It looks like you want the first 8 characters of the filename, which
is done with "%8f". ie)

Code:
exiftool -tagsfromfile %d%8f.nef -@ exif.args -ext jpg DIR

If you are using this in a Windows .BAT file (as it seems you might
be), then you must double all '%' characters (as in your 2nd example).

I think this should do what you want.

- PHil
Title: Re: Help with copying exif data and wild cards
Post by: Archive on May 12, 2010, 08:54:36 AM
[Originally posted by louiscar on 2009-05-23 13:41:31-07]

Many thanks Phil,

That did the trick.

regards

Louis