Bug 458752

Summary: Appimage isn't recognising digikam tags in xmp sidecars
Product: [Applications] digikam Reporter: Steve Franks <stevef48>
Component: Metadata-XmpAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version First Reported In: 7.8.0   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 7.9.0
Sentry Crash Report:
Attachments: xmp containing digikam tags for photo
attachment-29566-0.html

Description Steve Franks 2022-09-05 15:40:53 UTC
Created attachment 151846 [details]
xmp containing digikam tags for photo

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
The program is not reading tags from .xmp sidecar files.

STEPS TO REPRODUCE
1.  Run appimage (7.7.0 or 7.8.0) 
2.  Tools | Manitenance | Find new Files
3.  

OBSERVED RESULT
Many Images shown in No Tags collection do have tags that were written to xmp sidecars by Windows digikam 7.6.0, or later.

EXPECTED RESULT
All versions of digikamread tags written by other recent versions. 

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version:  ?
KDE Frameworks Version: 5.96.0 
Qt Version: 5.15.5 The xcb windowing system

ADDITIONAL INFORMATION
digikam displays a warning on starting saying that the disk containing the collection cannot be found, although the collection is on an internal hard disk. After I select the option to do nothing at this stage the appimage continues to load and correctly displays my photos.
Comment 1 Maik Qualmann 2022-09-05 16:06:52 UTC
Reading in the metadata from the sidecar works without any problems. I used a JPG image to delete the metadata and gave it the same name as the sidecar. Reading from sidecars is activated in the digiKam metadata settings?

Maik
Comment 2 Maik Qualmann 2022-09-05 16:32:50 UTC
Another thing is the "XMP" extension in upper case. digiKam only checks for "xmp" in lower case, however it may work on Windows depending on the file system and settings. Click on the image and look in the right sidebar under the Properties tab to see if there is a "Yes" next to Sidecar.

Maik
Comment 3 Maik Qualmann 2022-09-05 16:37:50 UTC
Ok, now I see it's about sidecars that were created under Windows and are now read under Linux. Yes, capital letters in the "XMP" extension do not work. You have to rename the extensions, we don't plan to query both variants for performance reasons.

Maik
Comment 4 Steve Franks 2022-09-06 08:54:14 UTC
Created attachment 151861 [details]
attachment-29566-0.html

Thanks, I will rename the XMP files to .xmp.
Steve
On Mon, 5 Sep 2022 at 17:37, Maik Qualmann <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=458752
>
> --- Comment #3 from Maik Qualmann <metzpinguin@gmail.com> ---
> Ok, now I see it's about sidecars that were created under Windows and are
> now
> read under Linux. Yes, capital letters in the "XMP" extension do not work.
> You
> have to rename the extensions, we don't plan to query both variants for
> performance reasons.
>
> Maik
>
> --
> You are receiving this mail because:
> You reported the bug.