EXIF Question - Nikkor 50mm f/1.8D

Started by zoliky, May 14, 2011, 08:45:37 PM

Previous topic - Next topic

zoliky

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:



Is there a way to inject this information into the RAW file?
I would be grateful for any help. Thank you!

Phil Harvey

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).

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

zoliky

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!

Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).