Bug 518981 - "Write to XMP sidecar only" not honored for rotation data
Summary: "Write to XMP sidecar only" not honored for rotation data
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Orientation (other bugs)
Version First Reported In: 9.0.0
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-04-15 11:00 UTC by Tommy
Modified: 2026-04-15 19:27 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 9.1.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tommy 2026-04-15 11:00:29 UTC
SUMMARY
I’m trying to keep my photos 100% unmodified/original, ie. I want the file hash to never change, any any edits, tags, gps data or whatever should be saved to xmp sidecar files.

Now I’m trying to rotate photos in the thumbnail view, but no matter how I configure the metadata settings, it seems to either only save the rotation settings to the database, or to both the image metadata and the xmp sidecar.

Settings/Metadata/Sidecars
“Write to sidecar files” is set to “Write to XMP sidecar only”

    Settings/Metadata/Rotation - “Write flag to metadata if possible” ← checked
    This causes the rotation data to be written to both the image itself, and to the xmp sidecar.

    Settings/Metadata/Rotation - “Write flag to metadata if possible” ← unchecked
    This causes the rotation data to be written only to the database, not to the image metadata or to the xmp sidecar.

What I want is that the rotation data is only written to the xmp sidecar (and the database, or not, dosen’t really matter), but not to the image metadata to keep the files 100% original.

This feels like bug in that the "Write to XMP sidecar only" setting is not fully honored since rotation data is written do the image metadata as well.

STEPS TO REPRODUCE
1. Configure Settings/Metadata/Sidecars so that “Write to sidecar files” is set to “Write to XMP sidecar only”
2. Rotate an image in the thumbnail view.

OBSERVED RESULT
The rotation metadata is written to *both* xmp sidecar and image metadata.

EXPECTED RESULT
Rotation metadata should only be written to xmp sidecar.

SOFTWARE/OS VERSIONS
Linux: Debian 13 with digiKam 9.0.0 installed from Flathub.
Comment 1 Maik Qualmann 2026-04-15 18:31:51 UTC
Read this Bug 515664. If you physically rotate an image, the pixel data is changed anyway, so you can also write the metadata flag.

If you do rotate, only do it at the metadata flag level.

Maik
Comment 2 Maik Qualmann 2026-04-15 19:27:02 UTC
Git commit 133ef5634d218cd1943fb8d11662d6bba82a20ca by Maik Qualmann.
Committed on 15/04/2026 at 19:25.
Pushed by mqualmann into branch 'master'.

change writing rotation flag behavior
Related: bug 515664
FIXED-IN: 9.1.0

M  +1    -1    NEWS
M  +11   -11   core/libs/fileactionmanager/fileworkeriface.cpp

https://invent.kde.org/graphics/digikam/-/commit/133ef5634d218cd1943fb8d11662d6bba82a20ca