ExifTool Forum

General => Metadata => Topic started by: zoliky on May 14, 2011, 08:45:37 PM

Title: EXIF Question - Nikkor 50mm f/1.8D
Post by: zoliky on May 14, 2011, 08:45:37 PM
Hi,
I'm using a "Nikkor 50mm f/1.8D" with manual extension tubes.
The camera loses some information. I add them manually:

exiftool -overwrite_original -Lens='50.0 mm f/1.8' -LensType='D' -FocalLength='50' -FNumber='11'
-ApertureValue='11' myphoto.NEF


Exiftool shows the Lens ID as unknown:

(http://dl.dropbox.com/u/1924024/lensid.jpg)

Is there a way to inject this information into the RAW file?
I would be grateful for any help. Thank you!
Title: Re: EXIF Question - Nikkor 50mm f/1.8D
Post by: Phil Harvey on May 15, 2011, 07:17:49 AM
The Nikon LensID tag is derived from the values of a number of other tags (see the 2nd LensID tag in the Composite tag name documentation (https://exiftool.org/TagNames/Composite.html)).

Writing all of the associated tags with the proper values is tricky, but it can be done.  For this lens, the following argfile will do it for you:

-Nikon:LensIDNumber=118
-Nikon:LensFStops=7.33
-Nikon:LensFStops=7.33
-Nikon:MinFocalLength=50.4 mm
-Nikon:MaxFocalLength=50.4 mm
-Nikon:MaxApertureAtMinFocal=1.8
-Nikon:MaxApertureAtMaxFocal=1.8
-Nikon:MCUVersion=122
-Nikon:LensType=D


with this command (assuming the argfile is named "my.args"):

exiftool -@ my.args a.nef

- Phil
Title: Re: EXIF Question - Nikkor 50mm f/1.8D
Post by: zoliky on May 15, 2011, 07:49:26 PM
It works, thank you!
I just finished my argument file:


-Lens=50.0 mm f/1.8
-FNumber=11
-ApertureValue=11

-MaxApertureValue=1.7
-EffectiveMaxAperture=1.8
-FocalLength=50
-FocalLengthIn35mmFormat=75
-Nikon:LensIDNumber=118
-Nikon:LensFStops=7.33
-Nikon:MinFocalLength=50.4 mm
-Nikon:MaxFocalLength=50.4 mm
-Nikon:MaxApertureAtMinFocal=1.8
-Nikon:MaxApertureAtMaxFocal=1.8
-Nikon:MCUVersion=122
-Nikon:LensType=D


I get this notification if I run this command:

exiftool -@ my.args photo.NEF

exiftool -@ args photo.NEF
Warning: [minor] Suspicious MakerNotes offset for ExposureBracketValue - photo.NEF
1 image files updated

Is this normal?
One more question. Exiftool added a new line into the EXIF:

XMP Toolkit                     : Image::ExifTool 8.56

Do I need this?
Thank you!
Title: Re: EXIF Question - Nikkor 50mm f/1.8D
Post by: Phil Harvey on May 17, 2011, 06:22:37 AM
Sorry for the delay in responding, I'm out of town right now.

Quote from: zoliky on May 15, 2011, 07:49:26 PM
Warning: [minor] Suspicious MakerNotes offset for ExposureBracketValue - photo.NEF

Is this normal?

This is normal for the D3000 and D3100.  Nikon writes a zero offset for this value for some reason, so the value is bogus for these cameras.

Quote
One more question. Exiftool added a new line into the EXIF:

XMP Toolkit                     : Image::ExifTool 8.56

Do I need this?

All XMP writers will add this information, but only ExifTool shows it to you and gives you control over it.

Use -xmptoolkit= to disable writing this tag.  Or write whatever other value you want.

- Phil
Title: Re: EXIF Question - Nikkor 50mm f/1.8D
Post by: zoliky on May 20, 2011, 06:53:12 PM
Thank you!