Bug 428558

Summary: With batch workflow lens correction doesn't use metadata
Product: [Applications] digikam Reporter: Joachim Ullrich <info>
Component: Plugin-Bqm-LensCorrectionAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version: 6.4.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 7.2.0
Sentry Crash Report:
Attachments: screen shot of auto lenscorrection from batch workflow

Description Joachim Ullrich 2020-11-01 13:07:53 UTC
Created attachment 132939 [details]
screen shot of auto lenscorrection from batch workflow

SUMMARY


STEPS TO REPRODUCE
1. select image in raw format
2. add to batch queue
3. add auto lens correction to batch workflow
4. check settings for lens correction

OBSERVED RESULT
checkbox for "use metadata" from auto lens correction is inactive and cannot be checked.
Selected camera and lens shows any non fitting model

EXPECTED RESULT
checkbox "use metadata" is active and check-able. The correct camera and lens data are shown.


SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Linux linux-2 5.3.18-lp152.47-default
(available in About System)
KDE Plasma Version: plasma5-workspace-5.18.5-lp152.2.1
KDE Frameworks Version: plasma-framework-5.71.0-lp152.1.1.x86_64
Qt Version: 5.12.7

ADDITIONAL INFORMATION
When using auto lens correction with the image editor (not with batch queue) all works as expected. I.e. correct camera and lens is selected and the correction produces a reasonable result.

Problem occurs with raw or jpg images from canon powershot G1 X and canon EOS 7D  MarkII (other cameras not tested)
Attached screenshot shows the settings for auto lens correction for a canon G1 X raw image. Checkbox "Metadaten" benutzen is not checkable. Content of fields "Marke:", Modell:" "Objekiv:" do not rely on the metadata from the selected image.
Comment 1 Maik Qualmann 2020-11-01 16:34:30 UTC

*** This bug has been marked as a duplicate of bug 381705 ***
Comment 2 Joachim Ullrich 2020-11-01 17:27:47 UTC
With former versions of digikam, auto lenscorrection worked properly with batch queue manager with several camera models (Canon: G1 X, EOS 7D MarkII, EOS 500D).
I.e. something has changed in digikam 6.4.
Comment 3 Maik Qualmann 2020-11-01 18:27:06 UTC
Git commit 513df2712f2c70532bdf668e5bb80b27f80382e3 by Maik Qualmann.
Committed on 01/11/2020 at 18:26.
Pushed by mqualmann into branch 'master'.

fix passive metadata usage in the BQM lensfun tool
FIXED-IN: 7.2.0

M  +2    -1    NEWS
M  +2    -2    core/libs/dimg/filters/lens/lensfuncameraselector.cpp

https://invent.kde.org/graphics/digikam/commit/513df2712f2c70532bdf668e5bb80b27f80382e3