Feature #1349
Add lens: Sigma 50-100mm F1.8 DC HSM | A
100%
Description
Using exiv2 0.25 001900 (64 bit build) (exiv2 0.25-3.1) in Ubuntu Bionic Development, this lens isn't recognized.
[22:55][nf@fox:~ ]$ exiv2 -pv 20171223_215641_D7100_008470_100mm.nef|grep -i lens
0x0083 Nikon3 LensType Byte 1 6
0x0084 Nikon3 Lens Rational 4 500/10 1000/10 18/10 18/10
0x008b Nikon3 LensFStops Undefined 4 76 1 12 0
0x000c NikonLd3 LensIDNumber Byte 1 204
0x000d NikonLd3 LensFStops Byte 1 76
[22:56][nf@fox:~ ]$ exiftool 20171223_215641_D7100_008470_100mm.nef|grep -i lens
Lens Type : G
Lens : 50-100mm f/1.8
Lens Data Version : 0204
Lens ID Number : 204
Lens F Stops : 6.33
Lens ID : Sigma 50-100mm F1.8 DC HSM | A
Lens Spec : 50-100mm f/1.8 G
Files
Related issues
History
Updated by Robin Mills over 3 years ago
- Status changed from New to Assigned
- Assignee set to Robin Mills
- Target version set to 0.27
- % Done changed from 0 to 10
- Estimated time set to 2.00 h
Nikolai: Thank you for reporting three unrecognised lenses. Can you attach a sample image to each of these issues. We will use these images to reproduce this issue and validate the fix. Additionally, we normally extract the a metadata file (.exv) and add it to our test suite as a regression detector. Any image using the lens is suitable. You may want to provide an image with the lens cap in use. Please provide the image and we'll take care of the metadata file and test suite.
Exiv2 v0.26 supports an "Exiv2 configuration file" ~/.exiv2 with which you can register new lenses. Here's a similar issue which can be resolved using ~/.exiv2 #1333
For your lenses, I believe the following in ~/.exiv2 will be effective:
[nikon] 204=Sigma 50-100mm F1.8 DC HSM | A 154=120-300mm f/2.8 G VR 160=AF-S DX Nikkor 18-140mm
Updated by Nikolai Försterling over 3 years ago
RAW are all larger than 25MB, so this is a jpeg exported from darktable 2.4.3
Updated by Nikolai Försterling over 3 years ago
If you provide a mail address or other alternative way, i'll send the corresponding RAW file
Updated by Robin Mills over 3 years ago
Thanks for getting back to me, Nikolai. My email address is robin AT- clanmills -DOT com Or perhaps you can share the files on a cloud service such as dropbox.
Updated by Robin Mills over 3 years ago
- Category changed from lens to not-a-bug
- Status changed from Assigned to Closed
- % Done changed from 10 to 100
- Estimated time changed from 2.00 h to 1.00 h
Nikolai
This lens was added in 2016 and will be in v0.26 and later releases.
516 rmills@rmillsmm:~/gnu/github/exiv2/exiv2 $ git blame src/nikonmn_int.cpp | grep 0xCC | grep Sigma 38edf0989 src/nikonmn.cpp (nkbj 2016-05-05 02:21:45 +0000 2206) {0xCC,0x4C,0x50,0x68,0x14,0x14,0x4B,0x06,0x00,0x00,0x00, "Sigma", "", "50-100mm F1.8 DC HSM | A"}, 517 rmills@rmillsmm:~/gnu/github/exiv2/exiv2 $The feature to enable a user defined lens in the file ~/.exiv2 was also added in v0.26.