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!
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
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!
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
Thank you!