Bug 473928 - Channels in CMYK are tinted with Red
Summary: Channels in CMYK are tinted with Red
Status: CONFIRMED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 5.1.5
Platform: Microsoft Windows Microsoft Windows
: NOR minor
Target Milestone: ---
Assignee: Dmitry Kazakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-30 04:24 UTC by keyth_qcfx2
Modified: 2023-08-31 07:56 UTC (History)
2 users (show)

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


Attachments
blue umbrella with red tinted display (1019.84 KB, image/png)
2023-08-30 04:24 UTC, keyth_qcfx2
Details

Note You need to log in before you can comment on or make changes to this bug.
Description keyth_qcfx2 2023-08-30 04:24:41 UTC
Created attachment 161275 [details]
blue umbrella with red tinted display

STEPS TO REPRODUCE
1.  Open a image in Krita
2. convert image into CMYK color model
3. through the channels docker isolate until only one channel is active

OBSERVED RESULT
the map has a destinctive red hue

EXPECTED RESULT
black and white map

SOFTWARE/OS VERSIONS
Windows: 10
Qt Version: 

ADDITIONAL INFORMATION
other softwares dont seem to have the red tint while on CMYK documents.
Comment 1 Dmitry Kazakov 2023-08-30 13:24:19 UTC
The bug happens because the way how Krita generates "gray" preview of a single channel is by resetting all the channels to the same value. In theory, it should become "gray", but for non-ideal profiles it may cause weird tints.

The proper solution would be to change the output color space of the tiles when doing channel preview, e.g. to RGB, when R=G=B is more or less gray...
Comment 2 Deif Lou 2023-08-30 19:17:36 UTC
Or maybe setting the black channel to the values of the selected one and the others to 0?
Comment 3 Dmitry Kazakov 2023-08-31 07:56:31 UTC
> Or maybe setting the black channel to the values of the selected one and the others to 0?

That is not very correct for CMYK from the technical point of view, because the profile may indirectly impose "black level limitation" which we would break. Though, it such case, painting directly in CMYK will also break this rule...