RSS/Atom feed Twitter
Site is read-only, email is disabled

map all colors that aren't already white/gray/black, to #808080?

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2017-03-24 22:09:12 UTC (over 7 years ago)
postings
14

map all colors that aren't already white/gray/black, to #808080?

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.

Ofnuts
2017-03-24 22:51:52 UTC (over 7 years ago)

map all colors that aren't already white/gray/black, to #808080?

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.

2017-03-26 11:46:18 UTC (over 7 years ago)
postings
14

map all colors that aren't already white/gray/black, to #808080?

Thank you Ofnuts! Worked like a charm!