Setting value to LensID tag

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

Previous topic - Next topic

Archive

[Originally posted by benkunz on 2008-12-10 07:25:29-08]

Hi,

I'm desperately trying to set a value on a picture.

here I read the LensID tag on a picture

MacBook: benoit$ exiftool DSC_9812.jpg -LensID
Lens ID                         : AF-S DX VR Zoom-Nikkor 18-200mm f/3.5-5.6G IF-ED
MacBook: benoit$

and here I try to write on another picture :

MacBook: benoit$ exiftool DSC_1845.jpg -LensID
MacBook: benoit$
MacBook: benoit$ exiftool DSC_1845.jpg -LensID="AF-S DX VR Zoom-Nikkor 18-200mm f/3.5-5.6G IF-ED"
Expected one or more integer values in XMP-aux:LensID (ValueConvInv)
Nothing to do.
MacBook: benoit$

If you have any idea what is wrong...

thanks

Archive

[Originally posted by exiftool on 2008-12-10 11:40:33-08]

Hi Benoit,

This is a bit tricky:  The LensID tag is a Composite tag which is based on the values of other tags, and it not yet writable.  Normally, the XMP:Lens tag is used for user-writable Lens model information.  But if you really want to write the Nikon LensID, currently you must write all of the tags that this is derived from.
These are listed in the Composite tag name documentation:

Code:
LensIDNumber
LensFStops
MinFocalLength
MaxFocalLength
MaxApertureAtMinFocal
MaxApertureAtMaxFocal
MCUVersion
LensType

I hope this helps.

   - Phil