Bug 479515 - JPEGs exported from Darktable are over-saturated
Summary: JPEGs exported from Darktable are over-saturated
Status: REPORTED
Alias: None
Product: digikam
Classification: Applications
Component: ColorManagement-Views (show other bugs)
Version: 8.2.0
Platform: macOS (DMG) macOS
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-07 18:58 UTC by scarps-lullaby-0q
Modified: 2024-09-17 15:58 UTC (History)
2 users (show)

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


Attachments
Over-saturated preview in Digikam vs expected colors in macOS Preview (1.29 MB, image/jpeg)
2024-01-07 19:02 UTC, scarps-lullaby-0q
Details
attachment-558318-0.html (3.57 KB, text/html)
2024-01-08 00:20 UTC, scarps-lullaby-0q
Details
IMG_1388.jpeg (52.12 KB, image/jpeg)
2024-01-08 00:20 UTC, scarps-lullaby-0q
Details
color-compare.jpg (965.13 KB, image/jpeg)
2024-01-08 07:32 UTC, Maik Qualmann
Details
attachment-625220-0.html (904 bytes, text/html)
2024-01-08 18:19 UTC, scarps-lullaby-0q
Details
attachment-633560-0.html (1.13 KB, text/html)
2024-01-08 20:28 UTC, scarps-lullaby-0q
Details

Note You need to log in before you can comment on or make changes to this bug.
Description scarps-lullaby-0q 2024-01-07 18:58:40 UTC
SUMMARY
***
JPEGs exported from Darktable are too saturated in the Digikam preview. I've been using Digikam for a while shooting JPEG, and only just encountered this issue after I began developing RAW files into JPEGs in Darktable. In macOS' Finder/Preview, colors appear as they do after making edits in Darktable. In Digikam, images are noticeably over-saturated in comparison to the other two programs. I've made sure that both Darktable and Digikam are working in the sRGB color space and turned Digikam's color management off and on again to no avail.
***

STEPS TO REPRODUCE
1. Process RAW in Darktable
2. Export as JPEG in sRGB color space
3. Import to Digikam and open in preview

OBSERVED RESULT
Over-saturated JPEG previews

EXPECTED RESULT
Colors in preview are consistent across programs

SOFTWARE/OS VERSIONS
macOS: Sonoma 14.2.1
Comment 1 scarps-lullaby-0q 2024-01-07 19:02:25 UTC
Created attachment 164733 [details]
Over-saturated preview in Digikam vs expected colors in macOS Preview
Comment 2 Maik Qualmann 2024-01-07 19:13:09 UTC
Does it change if you deactivate/activate the color management view with F12?

Maik
Comment 3 scarps-lullaby-0q 2024-01-07 19:30:26 UTC
Pressing F12 causes the top row of images to refresh in Preview mode, but doesn’t have any noticeable effect on the colors of the images.

> On Jan 7, 2024, at 1:13 PM, Maik Qualmann <bugzilla_noreply@kde.org> wrote:
> 
> https://bugs.kde.org/show_bug.cgi?id=479515
> 
> Maik Qualmann <metzpinguin@gmail.com> changed:
> 
>           What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                 CC|                            |metzpinguin@gmail.com
> 
> --- Comment #2 from Maik Qualmann <metzpinguin@gmail.com> ---
> Does it change if you deactivate/activate the color management view with F12?
> 
> Maik
> 
> -- 
> You are receiving this mail because:
> You reported the bug.
Comment 4 Maik Qualmann 2024-01-07 19:50:02 UTC
I can't reproduce the problem here (Linux) at the moment, can you provide the exported image?

Maik
Comment 6 scarps-lullaby-0q 2024-01-08 00:20:48 UTC
Created attachment 164738 [details]
IMG_1388.jpeg
Comment 7 Maik Qualmann 2024-01-08 07:32:44 UTC
Created attachment 164740 [details]
color-compare.jpg

I once placed my digiKam over your screenshot. Looks OK to me. The color change can only come from the color profile. Which color profile do you have set in your macOS? Which settings in the digiKam color management?

Maik
Comment 8 Maik Qualmann 2024-01-08 07:36:47 UTC
@Gilles, can you please test it with the original image from Comment 5 to see whether there is a difference between digikam and an image viewer on your Mac.

Maik
Comment 9 caulier.gilles 2024-01-08 08:11:14 UTC
ok i will check this evening...

Gilles
Comment 10 caulier.gilles 2024-01-08 16:35:53 UTC
@scarps-lullaby-0q@icloud.com

Do you have a Silicon or Intel Mac ?

Gilles Caulier
Comment 11 scarps-lullaby-0q 2024-01-08 17:52:59 UTC
In Digikam I have the Working Color Space set to sRGB (srgb-d65.icm) which I believe is the default. In macOS, the color space is set to Color LCD which is the default. I’m on a 2020 Intel MBP.

It looks like the image I sent is not at its original resolution, I’ll try to send a link for it as it might be that the issue only appears with the original image.

On Jan 8, 2024, at 10:35 AM, bugzilla_noreply@kde.org wrote:

https://bugs.kde.org/show_bug.cgi?id=479515

--- Comment #10 from caulier.gilles@gmail.com ---
@scarps-lullaby-0q@icloud.com

Do you have a Silicon or Intel Mac ?

Gilles Caulier
Comment 12 scarps-lullaby-0q 2024-01-08 18:19:01 UTC
Created attachment 164757 [details]
attachment-625220-0.html

Here is a link to the full resolution image: https://www.icloud.com/iclouddrive/0a12F4zVIovBNwB4pQCn97uXQ#IMG_1388

> On Jan 8, 2024, at 10:35 AM, bugzilla_noreply@kde.org wrote:
> 
> https://bugs.kde.org/show_bug.cgi?id=479515
> 
> --- Comment #10 from caulier.gilles@gmail.com ---
> @scarps-lullaby-0q@icloud.com
> 
> Do you have a Silicon or Intel Mac ?
> 
> Gilles Caulier
> 
> -- 
> You are receiving this mail because:
> You reported the bug.
Comment 13 scarps-lullaby-0q 2024-01-08 20:28:00 UTC
Created attachment 164760 [details]
attachment-633560-0.html

I believe I solved the issue by changing Preferences > Color Management > Monitor Profile to macOS’ native Color LCD profile. Images in Darktable have lost their excess saturation and seem to match the colors in other programs. Image linked here: https://www.icloud.com/iclouddrive/0ae-IIxA1byC4nvonsIr06WtQ#Screenshot_2024-01-08_at_2.25

> On Jan 8, 2024, at 10:35 AM, bugzilla_noreply@kde.org wrote:
> 
> https://bugs.kde.org/show_bug.cgi?id=479515
> 
> --- Comment #10 from caulier.gilles@gmail.com ---
> @scarps-lullaby-0q@icloud.com
> 
> Do you have a Silicon or Intel Mac ?
> 
> Gilles Caulier
> 
> -- 
> You are receiving this mail because:
> You reported the bug.
Comment 14 caulier.gilles 2024-01-08 21:42:11 UTC
This is how the JPG is displayed on my MacBook Pro 2015 Intel :

https://i.imgur.com/7XeG2xo.png

Gilles Caulier
Comment 15 caulier.gilles 2024-01-10 06:35:58 UTC
Hi Maik,

I think the problem of Color Management under MacOS (and also Windows) is the missing code here :

https://invent.kde.org/graphics/digikam/-/blob/master/core/libs/dimg/filters/icc/iccsettings_p_desktop.cpp?ref_type=heads#L162

Typically, under Windows and MacOS, we don't have code to get ICC color profile set in desktop for the screen.

I tried to found in the pass the relevant native code in other open source projects as Krita or Scribus for ex, without success.  

Gilles
Comment 16 caulier.gilles 2024-09-17 15:58:45 UTC
Maik,

It still need to implement the color management code for macOS. I don't yet found a code somewhere for that. Perhaps Qt implement something like that depending of the platform ?

Gilles