Project

General

Profile

Bug #904

Exiv2:lensName misreporting for some CR2s

Added by Pascal de Bruijn over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Category:
metadata
Target version:
Start date:
24 May 2013
Due date:
19 Jun 2013
% Done:

100%

Estimated time:

Description

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


Files

IMG_4017-preview3.jpg (449 KB) IMG_4017-preview3.jpg Pascal de Bruijn, 24 May 2013 10:49

Associated revisions

Revision 3057 (diff)
Added by Niels Kristian Bech Jensen over 8 years ago

Issue #904: Fix lensName misreporting for some CR2s.

History

#1

Updated by Niels Kristian Bech Jensen over 8 years ago

  • Category changed from api to metadata
  • Assignee set to Niels Kristian Bech Jensen
  • Target version set to 0.24

I will look into this problem.

Best regards,
Niels Kristian Bech Jensen

#2

Updated by Niels Kristian Bech Jensen over 8 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.

Regards,
Niels Kristian

#3

Updated by Robin Mills over 8 years ago

  • Status changed from Resolved to Closed

Fixed in 0.24.

Also available in: Atom PDF