ExifTool Forum

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

Title: Batch processing
Post by: Archive on May 12, 2010, 08:53:55 AM
[Originally posted by mikemcf on 2006-07-25 13:33:41-07]

Hi

I am batch processing Nikon NEF files using the Adobe DNG convertor to create a backup DNG file and also DxO Optics Pro to create a corrected DNG file that I use for processing (then delete the DxO file due to the size). So I end up with a directory full of files like this - 1.dng, 2.dng, 1_DxO.dng, 2_DxO.dng
DxO is not xmp aware so the xmp data from the nef sidecar file does not end up in the dxo dng file. I would like to batch copy the xmp data from the Adobe dng right through the directory. I can obviously do this file by file, either with ExifTool or In Adobe Bridge, but it would be great to automate the process. I think that the filename argument may be useful, but looking through the documentation, all those arguments make my eyes swim. It took me all morning to figure out how to extract the xmp data out a dng file to a xmp file, I was typing 'dir' thinking 'dir' was an actual argument rather than the directory location, not too bright.

Any advice would be great. I'm not adverse to a different dir structure or a different file naming system, although DxO does insist on some new suffix after the original file name. Or even if someone could suggest a batch renaming tool that would strip off the DxO suffix.
Thanks in advance, I apologise for the simple question. I am using WinXP Pro with the cmd shell.
Mike
PS Thanks to Phil for this tool, it looks really useful.
Title: Re: Batch processing
Post by: Archive on May 12, 2010, 08:53:55 AM
[Originally posted by exiftool on 2006-07-25 15:12:06-07]

Hi Mike,

This stuff is a bit confusing I agree.  Here is what you want to do:

Code:
   exiftool -tagsfromfile "%d/%-.4f.dng" -xmp:all DIR/*_DxO.dng

This is similar to the second advanced example for the -w option where the last 4 characters
of the file name are dropped.  The "-xmp:all" copies only the XMP tags, and you already know what to do with "DIR"... Wink

With any luck, your shell won't see the '%' as a special character because this would mess up
our nice format string.  But I think you should be OK.

- Phil
Title: Re: Batch processing
Post by: Archive on May 12, 2010, 08:53:55 AM
[Originally posted by mikemcf on 2006-07-25 18:13:13-07]

Thanks Phil, I appreciate you taking the time to answer, as I see you do with many queries about your fantastic utility.
Warm regards
Mike