K1TesseraEna wrote:
@Akros I agree with Ofnuts, we don't want to change the hue.
It seems I've found a workaround but it's a bit tedious. Still investigating, too early to post.
@rich selecting a color in gmic, creating a new layer, adding a greyscale image mask to it, copying that mask to main image does not really sound like an easy solution here, but at least gmic has a preview window. Replace Color filter seems to be more spot on, since it has an option to replace selected color with transparency.
Saulgoode's script replicates the Select by Color tool with the exact same tool options, and by definition (Scheme script) can't have a preview which is available in Color>Color_to_Alpha or PS's Color_Range.
Not much info in gimp documentation about the mechanism behind Color to Alpha function. But that's what I actually need with fuzziness/threshold control to pick analogous colors.
It is only reverse
alpha-compositing. The color-to-alpha "contract" is simple:
layer with removed color stacked over layer filled with removed color = original layer
This definition leads to an ambiguity, for instance, if you remove white from an image with gray, the gray in the original layer could become either:
- fully opaque original gray
- partially opaque black
- any gray in the original gray->black range, with an opacity somewhere between the two above.
C2A makes it unambiguous and shoots for maximum transparency, so you would get partially transparent black in the case above.
One way to get a color selection using the rotate color:
- duplicate layer
- use Rotate Color to map your wide range of selectable hues into a very narrow one
- add another layer, fill with some color (not gray), and put in saturation mode
- new from visible
- color selection on that layer
- discard all added layers, but keep the selection.