https://bugs.kde.org/show_bug.cgi?id=461689
Bug ID: 461689
Summary: Vector Shapes have shifted colors for API
Classification: Applications
Product: krita
Version: 5.1.3
Platform: Microsoft Windows
OS: Microsoft Windows
Status: REPORTED
Severity: normal
Priority: NOR
Component: Layers/Vector
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 153661
--> https://bugs.kde.org/attachment.cgi?id=153661&action=edit
pixel layer selecting blue
Document is standard : RGB and U8 with sRGB-elle-V2-srgbtrc.icc
I did this test, paint 2 colors on a paint layer and then paint the same 2
colors on a vector shape. they look the same but if I ask Krita through python
what color is displayed they will present different results.
REPLICATE
1 - create a new document
2 - create a vector object inside a vector layer and select it
3 - open scripter and and run this code to apply a color to the selected object
"""
from krita import *
d_cm = Krita.instance().activeDocument().colorModel()
d_cd = Krita.instance().activeDocument().colorDepth()
d_cp = Krita.instance().activeDocument().colorProfile()
managed_color = ManagedColor(d_cm, d_cd, d_cp)
comp = managed_color.components()
red = 0.4
green = 0.5
blue = 0.6
alpha = 1
comp = [blue, green, red, alpha]
managed_color.setComponents(comp)
Krita.instance().activeWindow().activeView().setForeGroundColor(managed_color)
"""
4 - vector fill of the object will become blue
5 - deselect object and select it again
6 - read object with this code to see if the numbers are the same that you
placed in
"""
from krita import *
color_fg = Krita.instance().activeWindow().activeView().foregroundColor()
order_fg = color_fg.componentsOrdered()
r = order_fg[0]
g = order_fg[1]
b = order_fg[2]
print("red " + str(r))
print("green " + str(g))
print("blue " + str(b))
"""
OBSERVED RESULT
you will notice the value are “similar” but it is enough to cause a big shift
in the perceived color.
EXPECTED RESULT
read the same color that was placed into the shape object a moment ago.
SOFTWARE/OS VERSIONS
Windows: 10
Qt Version: 5.12.12
ADDITIONAL INFORMATION
--
You are receiving this mail because:
You are watching all bug changes.