Thread

Posted on Mon Apr 28 07:28:30 2008 by patpro
can't figure out how to copy some tags from a CR2 to the corresponding JPEG

Hi,

I'm using exiftool 7.25 installed from MacPorts on Mac OS X 10.5.

I'm trying to copy exif data from a Canon raw file to it's jpeg counterpart :

$ exiftool -all= -TagsFromFile ../IMG_0093.CR2 -Canon -Canon:LensType --FileName IMG_0093.jpg Warning: Can't convert value for Nikon:ShootingMode (no PrintConvInv) - ../IMG_0093.CR2 1 image files updated

As you can see, it triggers an error, and unfortunately -Canon:LensType won't copy at all. I'm also quite surprised I have to use "--FileName" otherwise, a new IMG_0093.CR2 is created in the current directory.

regards,

patpro
Direct Responses: 7775 | Write a response
Posted on Mon Apr 28 13:25:48 2008 by exiftool in response to 7774
Re: can't figure out how to copy some tags from a CR2 to the corresponding JPEG
Hi Patpro. The "Canon" shortcut includes the "FileName" tag, so this tag is copied too, which is not what you want. To copy lenstype you must copy the entire makernotes plus the make and model tags. (-makernotes -make -model). The faq explains about the make/model tags. I hope this makes sense. - Phil
Direct Responses: 7776 | Write a response
Posted on Mon Apr 28 15:25:43 2008 by patpro in response to 7775
Re: can't figure out how to copy some tags from a CR2 to the corresponding JPEG

Hi Phil,

In fact, I don't mind copying the FileName tag. I juste use "--FileName" so that a new file is not created:

$ ls IMG_0093* IMG_0093.jpg $ exiftool -all= -TagsFromFile ../IMG_0093.CR2 -Canon -Canon:LensType -makernotes -make -model IMG_ +0093.jpg Warning: Can't convert value for Nikon:ShootingMode (no PrintConvInv) - ../IMG_0093.CR2 1 image files created $ ls IMG_0093* IMG_0093.CR2 IMG_0093.jpg

If I use "--FileName", the new file IMG_0093.CR2 is not created, the old file IMG_0093.jpg is backuped as IMG_0093.jpg_original, and the updated file is IMG_0093.jpg.

Thank you for your help with LensType and "-makernotes -make -model". Unfortunately, this combo copies a lot of tags I don't need. If I understand well, I'll have to reset those unwanted tags one by one, right ?

Last question for now: is there any "tree" representation of tag/groups hierarchy?

Direct Responses: 7788 | Write a response
Posted on Tue Apr 29 00:22:16 2008 by exiftool in response to 7776
Re: can't figure out how to copy some tags from a CR2 to the corresponding JPEG
It sounds like you should be copying lenstype to xmp:lens if that is all you want. You cant delete individual makernote tags. And sorry there is no hierarchical tag name documentation, just the TagName web pages. - Phil
Direct Responses: 7815 | Write a response
Posted on Mon May 5 10:03:29 2008 by patpro in response to 7788
Re: can't figure out how to copy some tags from a CR2 to the corresponding JPEG
thanx, I'm going to give this a try.
Write a response