[Gimp-user] map all colors that aren't already white/gray/black, to #808080?

2017-03-26 Thread ottenm
Thank you Ofnuts!  Worked like a charm!

-- 
ottenm (via www.gimpusers.com/forums)
___
gimp-user-list mailing list
List address:gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list


[Gimp-user] map all colors that aren't already white/gray/black, to #808080?

2017-03-25 Thread Scott Jacobs via gimp-user-list
One way to do this is to remove the color to a separate layer, select it, and 
fill with whatever grey you like:

Duplicate the image layer.
On the duplicated layer, remove all color (Colors->Desaturate, or whatever).
Set the layer mode of the duplicated layer to Difference.
Since all black/grey/white pixels are desaturated already, the difference 
between the two layers will be zero, or black.
If we now remove all black pixels, we are left with only the pixels that had 
been colored.

Layer->NewFromVisible; make sure this new layer has an Alpha Channel 
(Layer-context-menu->AddAlphaChannel)
(At this point, everything but the color should be black)
In the new layer, Select the black (with a 0.0 threshhold, I imagine) and 
Edit->Clear. Now, all non-color will be transparent.
Invert the selection (Select->Invert).
Click on the foreground color, and make it whatever grey you like.
Edit->FillWithFGColor, and the colored areas will now all be your favored grey.
If you now only make visible (eyeball symbol on layers dock) this new layer 
(probably called Visible) and
your original layer, you should now have what you wanted.

(NOTE: I was testing this with merely grey/black/white areas/lines, and 
green/blue/red "paint"/"Airbrush"  lines.
It is possible that if a photo was used that some un-considered issue would 
arise that would also need to be addressed.
I was assuming a largly black/white grey image, with a bit of color.  If the 
image was largely colored, then
of course the resultant image would be almost completely grey...)
___
gimp-user-list mailing list
List address:gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list


Re: [Gimp-user] map all colors that aren't already white/gray/black, to #808080?

2017-03-24 Thread Ofnuts

On 24/03/17 23:09, ottenm wrote:

I think I got it all crammed into the subject line!  I have some images with
color spots in them that I would like to turn gray, but I want all the color
spots replaced with the same shade of gray (not to darker/lighter shades of gray
depending on how dark/light the original color was).  Also want original whites,
grays, and blacks left as is.

I started using Color > Map > Color Exchange but the threshold is either missing
too much or grabbing too much.  Not sure how to select everything that isn't
white, gray, or black.

Hope that makes sense, apologies if it doesn't or if there's an obvious fix I'm
missing due to genetics or disposition.




Use the Color selection, but use the criterion selector  '"Select by", 
at the bottom to select by Saturation. Click on one of your greys and 
this will select only the pixels that have a saturation of 0 (or very 
close to, depending on threshold)(in other words, the grays). Then 
invert the selection and bucket fill with grey. Caveat: likely due to 
round-off errors, the saturation value on black ad very dark grays is a 
bit erratic and some pixels may not be selected in the initial selection.



___
gimp-user-list mailing list
List address:gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list


[Gimp-user] map all colors that aren't already white/gray/black, to #808080?

2017-03-24 Thread ottenm
I think I got it all crammed into the subject line!  I have some images with
color spots in them that I would like to turn gray, but I want all the color
spots replaced with the same shade of gray (not to darker/lighter shades of gray
depending on how dark/light the original color was).  Also want original whites,
grays, and blacks left as is.

I started using Color > Map > Color Exchange but the threshold is either missing
too much or grabbing too much.  Not sure how to select everything that isn't
white, gray, or black.

Hope that makes sense, apologies if it doesn't or if there's an obvious fix I'm
missing due to genetics or disposition.


-- 
ottenm (via www.gimpusers.com/forums)
___
gimp-user-list mailing list
List address:gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list