Exiv2:lensName misreporting for some CR2s
Exiv2::lensName(exifData) seems to prefer the "wrong" EXIF entry in some cases, as "30mm" is reported as lens instead of "Sigma ... "
$ exiv2 -pt IMG_4017-preview3.jpg | grep -i lens
Exif.CanonCs.LensType Short 1 Sigma 30mm f/1.4 EX DC HSM
Exif.CanonCs.Lens Short 3 30.0 mm
Exif.Canon.LensModel Ascii 4 30mm
Exif.Photo.LensSpecification Rational 4 30/1 30/1 0/1 0/1
Exif.Photo.LensModel Ascii 5 30mm
Reference to Darktable bug: http://darktable.org/redmine/issues/9418
Reference to Darktable workaround: https://github.com/darktable-org/darktable/commit/85a44115d007e4081eb8ef4f5502a2f0277ad1dd
Updated by Niels Kristian Bech Jensen about 6 years ago
- Due date set to 19 Jun 2013
- Status changed from New to Resolved
- % Done changed from 0 to 100
The problem was that Exif.Canon.LensModel (and hence Exif.Photo.LensModel) only reports the focal length (checked using ExifTool). I have changed the easy-access function to use Exif.CanonCs.LensType.