ExifTool Forum

ExifTool => Archives => Topic started by: Archive on May 12, 2010, 08:54:20 AM

Title: can't figure out how to copy some tags from a CR2 to the corresponding JPEG
Post by: Archive on May 12, 2010, 08:54:20 AM
[Originally posted by patpro on 2008-04-28 04:28:30-07]

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 :

Code:
$ 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
Title: Re: can't figure out how to copy some tags from a CR2 to the corresponding JPEG
Post by: Archive on May 12, 2010, 08:54:20 AM
[Originally posted by exiftool on 2008-04-28 10:25:48-07]

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
Title: Re: can't figure out how to copy some tags from a CR2 to the corresponding JPEG
Post by: Archive on May 12, 2010, 08:54:20 AM
[Originally posted by patpro on 2008-04-28 12:25:43-07]

Hi Phil,

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

Code:
$ 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?
Title: Re: can't figure out how to copy some tags from a CR2 to the corresponding JPEG
Post by: Archive on May 12, 2010, 08:54:20 AM
[Originally posted by exiftool on 2008-04-28 21:22:16-07]

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
Title: Re: can't figure out how to copy some tags from a CR2 to the corresponding JPEG
Post by: Archive on May 12, 2010, 08:54:20 AM
[Originally posted by patpro on 2008-05-05 07:03:29-07]

thanx, I'm going to give this a try.