Bug #904

Exiv2:lensName misreporting for some CR2s

Added by Pascal de Bruijn almost 4 years ago. Updated over 3 years ago.

Status:ClosedStart date:24 May 2013
Priority:NormalDue date:19 Jun 2013
Assignee:Niels Kristian Bech Jensen% Done:

100%

Category:metadata
Target version:0.24

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

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

Associated revisions

Revision 3057
Added by Niels Kristian Bech Jensen almost 4 years ago

Issue #904: Fix lensName misreporting for some CR2s.

History

#1 Updated by Niels Kristian Bech Jensen almost 4 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 almost 4 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 3 years ago

  • Status changed from Resolved to Closed

Fixed in 0.24.

Also available in: Atom PDF

Redmine Appliance - Powered by TurnKey Linux