Bug 354232 - Lens information is always "unavailable" for Pentax K-S1 images
Summary: Lens information is always "unavailable" for Pentax K-S1 images
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Editor-LensCorrection (show other bugs)
Version: 4.14.0
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-22 21:50 UTC by Piotr Ryszkiewicz
Modified: 2016-11-23 17:17 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.4.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Ryszkiewicz 2015-10-22 21:50:54 UTC
Images taken with Pentax K-S1 miss lens type information in both Photograph Properties and Lens Auto-Correction module in Image Editor.
exiv2 reports it correctly:
$ exiv2 -pt IMGP0553.JPG | grep -i lenstype
Exif.PentaxDng.LensType                      Byte        4  smc PENTAX-DA 35mm F2.4 AL


Reproducible: Always

Steps to Reproduce:
1. Click on image
2. Check 'Photograph Properties'

Actual Results:  
Lens is reported as 'unavailable'

Expected Results:  
Lens should be reported as evix2 reports.
Comment 1 caulier.gilles 2015-10-23 04:14:27 UTC
Which digiKam and lensfun versions you use ? Go to Help/Components Info for details.

Giles Caulier
Comment 2 Piotr Ryszkiewicz 2015-10-23 06:36:10 UTC
Digikam 4.14.0
LibExiv2 0.25
LibLensFun 0.3.1-0
I added camera info into slr-pentax.xml, as it was missing there. Since then Auto-Correction recognizes camera, but not lens type.
I am not sure, that this is LensFun problem, as lens info is missing from general Photograph Properties in main window as well.

Piotr
Comment 3 caulier.gilles 2015-10-23 06:56:31 UTC
The Lens type is read by Exiv2 from Exif. So the problem can come from this library
Comment 4 Piotr Ryszkiewicz 2015-10-23 07:25:30 UTC
Well. that's possible. But if so, why exiv2 reports it correctly ?
Comment 5 Olaf 2016-11-22 14:50:49 UTC
I also have this problem. My camera is a Pentax K-30. The lens information is "not available". Hovever, the lens type is shown in the Manufacturer Notes. But since the Lens Auto-correction module does not use this information and I can´t search or filter according this information, it has no great use for me.

Is it possible to copy the information from the the Manufacturer Notes to a perhaps more standard-conform EXIF field in the database?
Comment 6 caulier.gilles 2016-11-22 15:40:30 UTC
Olaf,

Sound like a missing feature about Pentax camera in Exiv2 shared lib, dedicated to read metadata from file. Version 0.26 will fix probably the problem :

http://dev.exiv2.org/versions/52

But it's not yet released.

Just to be sure, can you check with next digiKam 5.4.0 AppImage bundle for Linux to see if problem is reproducible. Note : Exiv2 0.25 is used inside...

https://drive.google.com/open?id=0BzeiVr-byqt5Y0tIRWVWelRJenM

Gilles Caulier
Comment 7 Maik Qualmann 2016-11-22 18:17:10 UTC
Git commit 15f323c4908e1c47201090d378e8ad4304e21e91 by Maik Qualmann.
Committed on 22/11/2016 at 18:16.
Pushed by mqualmann into branch 'master'.

add Pentax lens type Makernote
FIXED-IN: 5.4.0

M  +2    -1    NEWS
M  +1    -0    libs/dmetadata/dmetadata.cpp

http://commits.kde.org/digikam/15f323c4908e1c47201090d378e8ad4304e21e91
Comment 8 Maik Qualmann 2016-11-22 18:19:30 UTC
Note: This requires a rereading of the metadata from the images.

Maik
Comment 9 Olaf 2016-11-23 12:12:07 UTC
Hello Gilles, 
I tried to start digikam-5.4.0-01-x86-64.appimage, but it shows only the splashscreen and terminates with this message:

D/tmp/.mount_RzL9Xq/AppRun: Zeile 37:  2288 Speicherzugriffsfehler  (Speicherabzug geschrieben) digikam.wrapper $@
olaf@olaf-iMac:~/Downloads$ 

Seicherzugriffsfehler "memory access fault"?  Sorry, German error message...

I keep on trying.
Comment 10 caulier.gilles 2016-11-23 15:19:07 UTC
I just download the last 5.4.0 AppImage bunble and it do not crash here...

Gilles Caulier
Comment 11 Olaf 2016-11-23 17:17:19 UTC
It worked with the Win64.exe with Windows 10 in a virtual box- the lens ist shown. 
It did not work with the x86-64.appimage with clean install of Kubuntu 16.04 in a virtual box. Digikam 5.4.0 starts, but the lens type is "not available".

Olaf