Bug 476746

Summary: Color picker picks wrong color
Product: [Applications] krita Reporter: Jonas <jonas.peche>
Component: Color SelectorsAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: halla
Priority: NOR    
Version First Reported In: 5.2.0   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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!