[krita] [Bug 413125] Color to alpha makes the image lose its original color

2024-06-13 Thread Estecka
https://bugs.kde.org/show_bug.cgi?id=413125

--- Comment #8 from Estecka  ---
Created attachment 170471
  --> https://bugs.kde.org/attachment.cgi?id=170471=edit
Red to Yellow gradient with Orange removed

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

[krita] [Bug 413125] Color to alpha makes the image lose its original color

2024-06-13 Thread Estecka
https://bugs.kde.org/show_bug.cgi?id=413125

--- Comment #9 from Estecka  ---
Hi,
I'm a long time user of Gimp, who just started trying out Krita 5.2.2.
Krita's colour to alpha filter indeed works nothing like Gimp's, and no
changing the threshold value can fix that:

[Red to Yellow gradient, Orange
removed](https://bugs.kde.org/attachment.cgi?id=170471)
At a threshold of 43/255, Krita is both overly agressive on the red side of the
gradient, andoverly lenient on the yellow side.
The red side never reaches 100% opacity, while the yellow leaves a large strip
that is 100% opaque. Both sides of the gradient still have traces of orange in
them, when they should be pure Red or Yellow.

> I don't know how is implemented in gimp 2.10 but it gives me the same results.

As was mentionned, Gimp can be very finicky with its blending, so in order to
get the expected result in Gimp you need to either:
- With the Color to Alpha filter, switch the layer's composite space to
"Perceptual", or switch the Blend mode to Legacy Normal.
- Or, do not use the Color to Alpha filter, instead use the Bucket Fill tool
with the non-legacy "Color Erase" blend mode.

My expectation for this filter is that it should be the opposite operation to
the "Behind" blend mode. Removing a colour and then backfilling with the same
colour should result in a visually indistinguishable picture. (Safe for
arithmetic imprecision.)

I haven't checked the code for Gimp, but intuitively: if the Normal/Behind
blend modes are linear interpolations between two colours, then Colour to
Alpha/Colour Erase would be a form of linear *extrapolation*. Amongst the line
of possible results, it would pick the first colour where any of the RGB
channel has reached an extreme (either 0 or 255).

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

[krita] [Bug 413125] Color to alpha makes the image lose its original color

2024-06-13 Thread Estecka
https://bugs.kde.org/show_bug.cgi?id=413125

Estecka  changed:

   What|Removed |Added

 CC||stickman.c...@galacsys.com

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

[krita] [Bug 413125] Color to alpha makes the image lose its original color

2020-02-23 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=413125

acc4commissi...@gmail.com changed:

   What|Removed |Added

Summary|Color to alpha makes the|Color to alpha makes the
   |image loses its original|image lose its original
   |color   |color

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