Bug 265726

Summary: digiKam doesn't detect lens type
Product: [Applications] digikam Reporter: Romain Henriet <romain.pub>
Component: Metadata-ExifAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: ahuggel, caulier.gilles
Priority: NOR    
Version: 1.8.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In: 7.3.0

Description Romain Henriet 2011-02-07 21:41:07 UTC
Version:           1.8.0 (using KDE 4.6.0) 
OS:                Linux

I have DNG raw and JPG images made with Pentax K-x, and Digikam is not able to read lens model.
However "exiftool image.DNG | grep Lens' gives correct information :
Lens Type                       : Tamron AF 17-50mm F2.8 XR Di-II LD (Model A16)
Lens F Stops                    : 7
Lens ID                         : Tamron AF 17-50mm F2.8 XR Di-II LD (Model A16)

Reproducible: Always

Steps to Reproduce:
Open a DNG or JPG image that have been taken with Pentax K-x

Actual Results:  
For DNG, Lens is "unavailable"
For JPG, Lens is "7 230 0 0"

Expected Results:  
Display lens model in photo's properties
Comment 1 caulier.gilles 2011-02-07 22:36:07 UTC
Please provide file samples to test. Thanks in advance

Gilles Caulier
Comment 2 Romain Henriet 2011-02-07 22:58:38 UTC
Here are samples : http://dl.free.fr/rXix99Wa3

Thanks,
Romain
Comment 3 caulier.gilles 2011-02-08 10:35:17 UTC
Romain,

digiKam delegate lens info extraction to Exiv2 library.

With Exiv2 0.21, lens is detected from JPEG, but not with DNG.

http://www.flickr.com/photos/digikam/5427807052/sizes/o/in/photostream/

Lens information is hosted in Pentax makernotes. Makernotes are decoded properly from JPEG, but not from DNG. This is the problem.

So, it's relevant of Exiv2 library. Please report it at Exiv2 bugzilla (http://www.exiv2.org)

Gilles Caulier
Comment 4 Romain Henriet 2011-02-08 21:00:02 UTC
ok, thank you
Comment 5 caulier.gilles 2011-02-08 21:57:02 UTC
Romain,

I see you entry :

Bug #758: Exiv2 doesn't detect lens model in Pentax k-x DNG files
http://dev.exiv2.org/issues/758

Let's me hear when this entry will be fixed to test with digiKam

Gilles Caulier
Comment 6 Romain Henriet 2011-02-08 21:59:09 UTC
ok, no problem
Comment 7 caulier.gilles 2011-12-17 09:26:10 UTC
Romain, 

What's new about this file ? It still valid using digiKam 2.x serie ?

Gilles Caulier
Comment 8 Romain Henriet 2011-12-17 11:45:44 UTC
Yes, I have Digikam 2.3.0 and lens is still "Unavailable". 
(Libexiv is 0.21).

Romain
Comment 9 caulier.gilles 2014-07-08 06:45:53 UTC
I close this file as UPSTREAM, as it's fully relevant of Exiv2 shared lib...

Gilles Caulier
Comment 10 caulier.gilles 2021-04-07 21:30:40 UTC
http://dev.exiv2.org/issues/758 is now closed.