Bug 499466 - Using Exiftool to write tags corrupts the ICC Profile of the image.
Summary: Using Exiftool to write tags corrupts the ICC Profile of the image.
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-ExifTool (other bugs)
Version First Reported In: 8.5.0
Platform: Microsoft Windows Microsoft Windows
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-03 15:33 UTC by moritz.haseloff
Modified: 2025-02-03 17:02 UTC (History)
2 users (show)

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


Attachments
uncorrupted file (1.06 MB, application/octet-stream)
2025-02-03 15:33 UTC, moritz.haseloff
Details
corrupted file (1.04 MB, application/x-zip-compressed)
2025-02-03 15:34 UTC, moritz.haseloff
Details
screenshot with corrupted image (3.33 MB, image/png)
2025-02-03 15:35 UTC, moritz.haseloff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description moritz.haseloff 2025-02-03 15:33:52 UTC
Created attachment 177926 [details]
uncorrupted file

SUMMARY
I am delegating tag writing to exiftool because I want to write tags to HEIC images. Writing tags corrupts the ICC Profile of the image (it deletes it), rendering the image in overbright/high contrast colors. See the bugreport for exiftool here: https://github.com/exiftool/exiftool/issues/313

STEPS TO REPRODUCE
1. set digikam to delegate tag writing to exiftool
2. load uncorrupted file
3. write a face tag to the image

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 moritz.haseloff 2025-02-03 15:34:29 UTC
Created attachment 177927 [details]
corrupted file
Comment 2 moritz.haseloff 2025-02-03 15:35:10 UTC
Created attachment 177928 [details]
screenshot with corrupted image
Comment 3 moritz.haseloff 2025-02-03 15:35:46 UTC
Phil, the developer of exiftool released a new version with a partial fix, it might be worth adding it to digikam 8.6.0. 
Thank you!
Comment 4 caulier.gilles 2025-02-03 15:42:08 UTC
Which ExifTool version exactly. In next 8.6.0, We integrate Exiftool 13.12...

Gilles Caulier
Comment 5 Maik Qualmann 2025-02-03 16:59:09 UTC
The cause is not ExifTool. Therefore, nothing should be changed in ExifTool. The cause was Bug 498076.

Maik
Comment 6 moritz.haseloff 2025-02-03 17:02:47 UTC
Wow, thanks I was not able to find this issue.