need help with a batch file: replace EXIF

Started by Archive, May 12, 2010, 08:54:25 AM

Previous topic - Next topic

Archive

[Originally posted by ppda on 2008-09-07 04:29:35-07]

Hi everybody,

Would anybody help me with the following. Let us say I have a windows folder C:\...\2008\ where I keep processed files and a subfolder C:\...\2008\originals\, where I keep CR2 Canon files.
I want to create a windows *.cmd file that would do the following:

1. Find all TIFF files ending with _LR.TIF in the current folder (for example, IMG_1234_LR.TIF)

2. Find the original CR2 file in the "originals" subfolder by discarding the last 3 characters (IMG_1234.CR2) and copy the full exif info from the CR2 file to the TIFF file

3. Rename the modified TIFF to something else, for example remove "_LR" and replace it with "_X" (IMG_1234_X.TIF).

Here is the reason I need this. LR discards the "maker notes" from Canon files. Some PP applications, like DXO Pro, PTLens, need this info. I want to process a CR2 file with LR, and keep all the EXIF. The processed file will have suffix "_LR". So after LR, I want to have a batch file so that I can simply click on, and it would restore the full EXIF from the original RAW file. The renaming is needed so that each time I do this, only the new files will be treated. Also, I would like this to work from any folder (having an \originals subfolder)

I can do that now with ExifToolGUI file by file, but I would like to automate it.

I did try to do this myself but I got nowhere. Any help would be appreciated. Thank you in advance.

Archive

[Originally posted by bogdan on 2008-09-07 10:26:55-07]

Hi,

After reading your post, I've updated ExifToolGUI, so you can (in batch) restore metadata from your original CR2 files into TIF files (see also version info in my homepage).

Now, it doesn't do exactly what you wish... in GUI, source (CR2) and destination (TIF) filenames must be the same -because, filename endings you use (_LR, _X) are specific and may not suit everybody's needs.

Anyway, I'm quite sure, Phil will give you simplest solution for your particular case :-)

Greetings,

Bogdan

Archive

[Originally posted by ppda on 2008-09-07 14:21:27-07]

Bogdan,

I just tried this: it works! (under Export/Import -> Restore metadata, for
the other readers of this forum). Thanks a lot! Of course, it is much better to
look for the same filename, no problem.

I wish the big guys were as responsive as you are. I have been trying to
convince Adobe to keep the full EXIF: I wrote to them, and posted on their
forums. The "gurus" on their forums cannot even understand what I am talking
about - and I gave up.