Bug 463528 - XMP sidecars are excluded from local storage export
Summary: XMP sidecars are excluded from local storage export
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Sidecar (show other bugs)
Version: 7.8.0
Platform: NixOS Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-27 18:34 UTC by Thibault Lemaire
Modified: 2023-01-07 20:53 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thibault Lemaire 2022-12-27 18:34:29 UTC
SUMMARY

When exporting a selection to local storage, items with sidecars are copied without their sidecars.


STEPS TO REPRODUCE
1. Make a selection containing items with sidecars
2. Export > Export to local storage...
3. Tick "Use the album path of the items in the target" (probably unrelated though, but that's how I tested)
4. "Start Export"

OBSERVED RESULT

Sidecar files are nowhere to be found in the export.

EXPECTED RESULT

Sidecar files are copied next to their parent item in the new local folder

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: NixOS 22.11
KDE Plasma Version: 5.26.3
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.7

ADDITIONAL INFORMATION

I use digiKam to manage my personal photos and videos. When friends and family visit me, I like to share part of my library with them (only what's relevant to them). It is important that the metadata I added is exported for them to be able to leverage all the search features of digiKam on their own computer. For formats that support it, I have configured digiKam to sync the metadata to the files, but for other formats, like most video formats, I rely on sidecars to store the metadata.

I have verified the issue on a windows machine with digiKam 7.9.0 to which I no longer have access, but it seems likely to me that the issue is unrelated to the host platform, or the version of digiKam.


I have experience with C++ and can attempt a PR if provided with some pointers to get me started. (no pun intended)
Comment 1 Maik Qualmann 2022-12-27 18:53:28 UTC
In fact, it was not previously intended to export sidecars. We even have the feature to remove metadata. So far there have only ever been requests to remove the metadata. The sidecar should be exported in any case optional.
In the same way, the sidecars would also have to be exported with the symlink options.

Maik
Comment 2 Maik Qualmann 2023-01-07 20:53:58 UTC
Git commit 9377c1fe4bd7c3c334f2e400c6688b5a8540e458 by Maik Qualmann.
Committed on 07/01/2023 at 20:52.
Pushed by mqualmann into branch 'master'.

add option to include the sidecars
FIXED-IN: 8.0.0

M  +2    -1    NEWS
M  +2    -0    core/dplugins/generic/webservices/filecopy/fccontainer.h
M  +7    -0    core/dplugins/generic/webservices/filecopy/fcexportwidget.cpp
M  +4    -0    core/dplugins/generic/webservices/filecopy/fcexportwindow.cpp
M  +24   -1    core/dplugins/generic/webservices/filecopy/fctask.cpp

https://invent.kde.org/graphics/digikam/commit/9377c1fe4bd7c3c334f2e400c6688b5a8540e458