Script for restoring EXIF data from cr2 to edited JPEG

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

Previous topic - Next topic

Archive

[Originally posted by bany on 2007-09-09 20:58:47-07]

hello all together

i'm looking for a modification of this string:

exiftool -tagsfromfile "%f.pef" -all:all -ext jpg .

into something like this

exiftool -tagsfromfile "XMP-crs:RawFileName" -all:all -ext jpg .

but unfortunately it doesn't work

perhaps you can help me

thanks

bany

Archive

[Originally posted by exiftool on 2007-09-09 21:23:22-07]

Interesting.  You want to use the filename stored in
XMP-crs:RawFileName as the source.  This can't
be done in a single step, however you could use
exiftool to generate a batch file that you could
subsequently execute to do what you want.  The
command would look something like this (in a
Unix environment):

Code:
exiftool -p 'exiftool -tagsfromfile $XMP-crs:RawFileName -all:all $filename' -q -ext jpg . > out.txt

This is a bit tricky, but it should work.  Then the last step
is to execute the output file you created above:

Code:
chmod 755 out.txt
 ./out.txt

I hope this isn't too confusing.

- Phil