Thread

Posted on Sun Jul 16 03:16:06 2006 by dmadd
Copy only makernotes from cr2 to jpeg
Hello. I'm very confused about the correct way to do this. All I want to do is copy all of my (Canon) MakerNotes from a cr2 raw file to a jpeg file. I've tried comands like:
./exiftool -tagsfromfile x.CR2 "-makernotes:all>makernotes:all" x.jpg
. But nothing seems to work (-all:all works, but it overwrites the exif and itpc data which I don't want copied into the jpeg). What is the correct command to do this ? Thanks.
Direct Responses: 2629 | Write a response
Posted on Sun Jul 16 15:02:18 2006 by exiftool in response to 2628
Re: Copy only makernotes from cr2 to jpeg
This is a bit tricky, so I'm not surprised you are having problems.

Writing "MakerNotes:All" writes the individual makernotes values, but the makernotes IFD (the block of MakerNotes information) is itself not a MakerNotes tag because it is written to the ExifIFD, not the MakerNotes IFD. (I hope this makes sense.) So if you want to write just the maker notes, you have to write that single ExifIFD tag.

Another complication is that this tag is named differently for each manufacturer (see the EXIF Tags documentation). So in your case you need to write "MakerNoteCanon".

To further complicate things, this won't work for a general image because in order to identify the maker notes as being "MakerNoteCanon", the Make and Model must be set correctly in the destination image. So to be sure this is right, you should also copy the Make and Model tags unless you know they are already correct. ie)

exiftool -tagsfromfile x.CR2 -makernotecanon -make -model x.jpg

(Notice that I didn't need to use "-makernotecanon>makernotecanon" because the ">TAG" is only necessary if you are redirecting the tag information to a tag of a different name.)

This should do what you want. Let me know if any of this is unclear.

- Phil
Direct Responses: 2631 | Write a response
Posted on Mon Jul 17 01:23:39 2006 by dmadd in response to 2629
Re: Copy only makernotes from cr2 to jpeg
Thank you. It makes sense and works perfectly.
Write a response