Bug 476746 - Color picker picks wrong color
Summary: Color picker picks wrong color
Status: RESOLVED INTENTIONAL
Alias: None
Product: krita
Classification: Applications
Component: Color Selectors (other bugs)
Version First Reported In: 5.2.0
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-09 10:23 UTC by Jonas
Modified: 2023-11-09 12:17 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas 2023-11-09 10:23:51 UTC
When I pick a color (tool or short-cut), the first color will be off by a random, small amount. If I select it again it then is correct.


STEPS TO REPRODUCE
1. Create a image, e.g. 10x10, RGBA 8bit int
2. Paint left side black (0, 0, 0), right side white (255, 255, 255)
3. Select color. If the current color was 255, the new color is now 8. A second click makes it 0. Works in the other direction as well.

OBSERVED RESULT
Selected colors appear to be interpolated or blended. It is not random, it has a constant 8/256 "blend" factor.


EXPECTED RESULT
Exactly the same color selected as on canvas.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version:
Comment 1 Halla Rempt 2023-11-09 11:09:53 UTC
I'm sorry, I cannot reproduce this. Could you also check with the appimage? And could you attach your test image?
Comment 2 Jonas 2023-11-09 12:15:57 UTC
Found the issue.

I tried the appimage (5.2.1) with the same effect. Another system and Windows portable on proton works.
Thus I assumed a config issue and traced it down to the color sampler config.

And within that settings the blend was set to 97%. Since I didn't even know that there is a blend for color picking, nor do I usually select the tool directly, I assume that I accidentally scrolled while hovering over it at some point in the past.

Sorry for the false alarm and thanks for the help!
Comment 3 Halla Rempt 2023-11-09 12:17:38 UTC
Thanks for checking!