Bug 424049 - After the import, some metadata was not read from the image.
Summary: After the import, some metadata was not read from the image.
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Setup-Metadata (show other bugs)
Version: 7.0.0
Platform: Microsoft Windows Microsoft Windows
: HI normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-09 23:22 UTC by iain
Modified: 2023-05-20 05:13 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.1.0


Attachments
Screenshots and image (2.78 MB, application/x-zip-compressed)
2020-07-09 23:22 UTC, iain
Details

Note You need to log in before you can comment on or make changes to this bug.
Description iain 2020-07-09 23:22:52 UTC
Created attachment 130013 [details]
Screenshots and image

SUMMARY
On some images Digikam is not recognizing the date from the metadata and instead defaulting to the Created Date. This results in:
1. Image being grouped into the wrong month in thumbnail view (see screenshot)
2. Image not being renamed correctly when renaming based on `[date]`

STEPS TO REPRODUCE
Attached example which produces this behaviour on my computer.
This photo was taken on 20-June but imported onto the computer on 09-July. 

OBSERVED RESULT
When grouping by month the image is listed under July
When renaming by date, the date chosen is 2020-07-09
(I named the file manually to get the correct date)

EXPECTED RESULT
When grouping by month the image is listed under June
When renaming by date, the date chosen is 2020-06-20


SOFTWARE/OS VERSIONS
Windows: 10
Digikam 7.0.0-rc

ADDITIONAL INFORMATION
- I believe this is a digikam problem. exiv2 reports the correct date (see attached screenshot)
- I haven't been able to determine what is the problem with this image. I have other examples taken on the same day with the same camera that are dated correctly.
Comment 1 caulier.gilles 2020-07-10 04:54:26 UTC
digiKam Setup/Metadata/Advanced can be used to configure where to extract information from file metadata.
But date is not yet managed in this hub.

Gilles Caulier
Comment 2 Maik Qualmann 2020-07-10 05:42:21 UTC
DigiKam determines the correct date here. Execute an "Item-> Reread Metadata From File". Why this sometimes occurs on Windows is unclear. My guess is that the file is blocked by another program during the scanning process and digiKam cannot read the metadata.

Maik
Comment 3 caulier.gilles 2020-07-10 06:10:35 UTC
MAik,

I read somewhere that application which do not come from the M$ Store has limited system access with restriction.

The ultimate solution is to build push the application to the store officially.

The problem for now: KDE binary build system with MSVC do not work, even if Windows CI from KDE work as expected. System are different, with separated config and of course the most important target build do not work, with digiKam.
My investigation results: it's a too long build path problem on the binary build system. I tried to advance on this problem with the KDE team, but, nobody is interested to work on it, as usual...

I explored other huge KDE application to see if a difference can be seen somewhere in CMakeLists.txt files with compilation rules. Nothing special, but...

...in Krita project i seen that MXE still in use to build target. The application is also published to the M$ Store, so, it's possible to backprocess MXE build with MSVC to make the UWP container to publish officially.

The rules are here for Krita:

https://invent.kde.org/graphics/krita/-/tree/master/packaging/windows/msix

This is definitively the right way to go in the future...

Gilles
Comment 4 Maik Qualmann 2020-07-10 18:32:29 UTC
*** Bug 418669 has been marked as a duplicate of this bug. ***
Comment 5 iain 2020-07-12 05:46:15 UTC
Maik - "Item-> Reread Metadata From File". This fixed the issue. Thanks!

"My guess is that the file is blocked by another program during the scanning process and digiKam cannot read the metadata." - I'd agree.

Gilles - I've developed application on Windows for years that aren't in the windows store and never seen them denied access to files, once you have said they can run. Files being locked is definitely a problem, in fact I used to see this in Lightroom before I switched to Digikam :-)

Thanks you both for your help.
Comment 6 Maik Qualmann 2020-10-31 18:48:01 UTC
*** Bug 428526 has been marked as a duplicate of this bug. ***
Comment 7 Maik Qualmann 2020-10-31 19:06:41 UTC
*** Bug 428526 has been marked as a duplicate of this bug. ***
Comment 8 Maik Qualmann 2020-11-07 21:12:03 UTC
*** Bug 426857 has been marked as a duplicate of this bug. ***
Comment 9 Maik Qualmann 2021-01-03 18:22:23 UTC
*** Bug 431121 has been marked as a duplicate of this bug. ***
Comment 10 Maik Qualmann 2022-10-08 10:15:33 UTC
*** Bug 460111 has been marked as a duplicate of this bug. ***
Comment 11 Maik Qualmann 2022-12-09 19:18:02 UTC
*** Bug 462814 has been marked as a duplicate of this bug. ***
Comment 12 Maik Qualmann 2022-12-24 12:08:40 UTC
*** Bug 463425 has been marked as a duplicate of this bug. ***
Comment 13 Maik Qualmann 2023-02-05 15:47:47 UTC
Git commit 4b31f11f112cfda823237e85fa1810a6b1988b8c by Maik Qualmann.
Committed on 05/02/2023 at 15:46.
Pushed by mqualmann into branch 'qt5-maintenance'.

fix scanning files when importing folders
Related: bug 465312, bug 465045
FIXED-IN: 7.10.0

M  +3    -1    NEWS
M  +11   -4    core/libs/database/utils/ifaces/dio.cpp

https://invent.kde.org/graphics/digikam/commit/4b31f11f112cfda823237e85fa1810a6b1988b8c
Comment 14 caulier.gilles 2023-04-29 19:44:36 UTC
@iain,

digiKam 8.0.0 is out. This entry still valid with this release ?

Best regards

Gilles Caulier
Comment 15 caulier.gilles 2023-05-20 05:13:40 UTC
Problem fixed with commit listed to comment 13

...and bugs closed :

https://bugs.kde.org/show_bug.cgi?id=465312
https://bugs.kde.org/show_bug.cgi?id=465045