Copy only makernotes from cr2 to jpeg

Started by Archive, May 12, 2010, 08:53:55 AM

Previous topic - Next topic

Archive

[Originally posted by dmadd on 2006-07-16 00:16:06-07]

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:
Code:
./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.

Archive

[Originally posted by exiftool on 2006-07-16 12:02:18-07]

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
https://exiftool.org/TagNames/EXIF.html" target="_blank">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)

Code:
   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

Archive

[Originally posted by dmadd on 2006-07-16 22:23:39-07]

Thank you. It makes sense and works perfectly.