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

            Bug ID: 493144
           Summary: Gradient preset in XYZ space converted to sRGB
    Classification: Applications
           Product: krita
           Version: 5.2.3
          Platform: Microsoft Windows
                OS: Microsoft Windows
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: File formats
          Assignee: krita-bugs-n...@kde.org
          Reporter: rmoerlan...@gmail.com
  Target Milestone: ---

Created attachment 173679
  --> https://bugs.kde.org/attachment.cgi?id=173679&action=edit
zip file with gradient presets as saved by Krita. All are XYZ layers in either
an XYZA document or an RGBA document

SUMMARY
Adding a gradient preset while sampling colors from an XYZA document leads to
different colors in the SVG file, depending on the color depth (int/float).

STEPS TO REPRODUCE
1. Create a new document in XYZA space, 16-bit float or int
2. Paint some colors
3. Use the gradient editor to add a new gradient, and sample colors from the
image
4. Save the gradient

OBSERVED RESULT
On one document with floats, colors were converted to sRGB:
<stop stop-opacity="1" stop-color="#925a79 icc-color(sRGB, 0.5725337863,
0.3529411852, 0.4745250642)" offset="0" krita:stop-type="color-stop"/>

On another document with floats, it seems that the conversion is implicit (and
the floating point style has disappeared):
<stop stop-opacity="1" stop-color="#00ff00" offset="0"
krita:stop-type="color-stop"/>

On a document with ints:
<stop stop-opacity="1" stop-color="#d58764" offset="0"
krita:stop-type="color-stop"/>

EXPECTED RESULT
Floating point color definitions from floating point sources in XYZ space

SOFTWARE/OS VERSIONS
Windows 10 Version 2009
Qt Version: 5.15.7

ADDITIONAL INFORMATION
The gradients seem to be saved properly (with icc-color) when, for example, a
ClayRGB profile and the RGBA model are used to work in.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to