Bug 380838 - Metadata only written to DNG when "write metadata to Raw" selected
Summary: Metadata only written to DNG when "write metadata to Raw" selected
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Sidecar (show other bugs)
Version: 5.6.0
Platform: Microsoft Windows Microsoft Windows
: NOR minor
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-04 19:51 UTC by MikeF
Modified: 2020-04-03 17:14 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.0.0


Attachments
writeToDNG.patch (14.51 KB, patch)
2020-04-03 06:10 UTC, Maik Qualmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MikeF 2017-06-04 19:51:11 UTC
When writing metadata to file with  "write metadata to sidecar for read-only image only" selected, a sidecar is created for DNG files unless "write metadata to Raw" is also selected.

I am aware that DNG files are RAW files, but since they are specifically meant to be a container that also holds metadata, they should be treated as normal files when writing Metadata.

Reproduceable: always
Comment 1 Maik Qualmann 2020-04-03 06:10:45 UTC
Created attachment 127229 [details]
writeToDNG.patch

Separate write to RAW and DNG files. First version to test.

Maik
Comment 2 caulier.gilles 2020-04-03 08:00:38 UTC
Hi Maik,

I read the patch and all sound fine for me.

I have not yet the time to test due to my office overload. Perhaps this week end it will be less intrusive...

Gilles
Comment 3 Maik Qualmann 2020-04-03 17:14:39 UTC
Git commit 15438a0c426009b80975f6b00a3911b6b7c4fb1b by Maik Qualmann.
Committed on 03/04/2020 at 17:12.
Pushed by mqualmann into branch 'master'.

separate write to RAW and DNG files
FIXED-IN: 7.0.0

M  +2    -1    NEWS
M  +3    -3    core/libs/dngwriter/dngwriter_convert.cpp
M  +1    -0    core/libs/metadataengine/dmetadata/dmetadata.cpp
M  +10   -0    core/libs/metadataengine/engine/metaengine.cpp
M  +10   -0    core/libs/metadataengine/engine/metaengine.h
M  +7    -1    core/libs/metadataengine/engine/metaengine_p.cpp
M  +1    -0    core/libs/metadataengine/engine/metaengine_p.h
M  +5    -0    core/libs/metadataengine/engine/metaenginesettingscontainer.cpp
M  +1    -0    core/libs/metadataengine/engine/metaenginesettingscontainer.h
M  +13   -3    core/utilities/setup/metadata/setupmetadata.cpp

https://invent.kde.org/kde/digikam/commit/15438a0c426009b80975f6b00a3911b6b7c4fb1b