Posted on 2009-05-23 12:31:55-07 by louiscar
Help with copying exif data and wild cards
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:
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:
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?
Direct Responses: 10799 | Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.