Bug 439976 - Converting CR3 into DNG via batch processing leads to loss of meta data (star rating is lost)
Summary: Converting CR3 into DNG via batch processing leads to loss of meta data (star...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: BatchQueueManager-RAWProcessing (other bugs)
Version First Reported In: 7.3.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-17 14:11 UTC by Gerd Mann
Modified: 2021-07-17 21:40 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gerd Mann 2021-07-17 14:11:48 UTC
SUMMARY


STEPS TO REPRODUCE
1. Select CR3 files and select batch processing
2. Select RAW to DNG conversion 
3. Batch process

OBSERVED RESULT
CR3 images are converted, meta data are added, but star ratings are lost.

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Ubuntu 20.04
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 caulier.gilles 2021-07-17 14:54:09 UTC
Which digiKam version did you use ?

If 7.3.0, please install exiftool to post process metadata after conversion.

I tested here and no metadata are lost.

Gilles Caulier
Comment 2 Maik Qualmann 2021-07-17 14:57:54 UTC
Which version are you using exactly? The problem was fixed in digiKam-7.3.0 by updating the DNG Adobe SDK and using ExifTool to copy the metadata. Just tested again, all metadata as in the original is available in the DNG.

Maik
Comment 3 Maik Qualmann 2021-07-17 14:58:34 UTC
Gilles was faster ((:-))

Maik
Comment 4 Maik Qualmann 2021-07-17 15:01:13 UTC
Is your star rating in the image or in the sidecar or only in the DB?

Maik
Comment 5 Gerd Mann 2021-07-17 15:56:09 UTC
I'm using 7.3.0 with exiftool 12.29 installed.
The CR3 meta data are in the xmp file.

When converting the CR3 to DNG with batch processing no xmp file is generated.
The DNG shows no star rating. Other meta data as color code (flag symbol) and keywords are just fine.

Must the exiftool post processing (mentioned by Gilles) be activated manually or is it part of the RAW to DNG conversion process? In the manual I couldn't find any info.

Gerd
Comment 6 Gerd Mann 2021-07-17 16:28:14 UTC
I have uploaded the CR3 with the xmp and the DNG files:

https://drive.google.com/drive/folders/1jsTDMSMul-42cnn3P_5SU8yQ4wQO6bmY?usp=sharing

Gerd
Comment 7 Maik Qualmann 2021-07-17 20:59:09 UTC
Git commit 5d77cf5ffe784f974bc4305cac175db03874924e by Maik Qualmann.
Committed on 17/07/2021 at 20:58.
Pushed by mqualmann into branch 'master'.

write in BQM the digiKam metadata to the new file
FIXED-IN: 7.4.0

M  +1    -1    NEWS
M  +6    -2    core/utilities/queuemanager/manager/actionthread.cpp

https://invent.kde.org/graphics/digikam/commit/5d77cf5ffe784f974bc4305cac175db03874924e
Comment 8 Gerd Mann 2021-07-17 21:18:00 UTC
Hi Maik

I'll take your 'push to branch master' as confirmation it's a bug and not as an indication that I'm too stupid to use DigiKam ;-)
Thanks for your efforts.

Gerd
Comment 9 Maik Qualmann 2021-07-17 21:40:30 UTC
Well, there are a lot of special cases in this problem. We are currently not reading any sidecar information with ExifTool. ExifTool can only either image or sidecar. But ExifTool not merge both pieces of information together. We would have to do that then. We have always merged the information from the database in the BQM from source image to new destination file. But they also have to be written in the image, and that is what the patch does.

Maik