Re: Find/select by color

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

On 12/14/2011 06:54, Steve Kinney wrote:
On 12/13/2011 10:20 PM, scott s. wrote:
GIMP 2.6.11

I need to be able to select region by color, but I want to be able
to specify the color RGB (for example, by setting the foreground
color). All I can find on the tool is to select by mouse/clicking
on image.  Is there any way to do this?  Couldn't find any likely
plug-in for it.

Desired behavior is
1.  Specify RGB in hex
2.  Activate tool/script
3.  All pixels in image with specified color are in selection
(with the various selection options and threshold/aa/transparency
options, though the options aren't mandatory).

This work around might do it for you:

1.  Duplicate the layer that has the region(s) you want to select.
2.  Use Colors>  Color to Alpha, enter the RGB value you want to select.
3.  In the layers dialog, do Alpha to Selection on your duplicate layer.
4.  Discard the duplicate layer.

This would have the same effect as using the "select by color" tool
in the main toolbox and just clicking on any region that is the
color you want - only the "select by color" tool has more options
than the work-around and is way faster.  Another option would be to
make your desired color the foreground color, paint a small dot of
that color somewhere on the layer where it will be easy to remove
later, and use the "select by color" tool on the dot.

Thanks.  Both look like good possibilities.  My application is that
raster is used to store various GIS data and image-editing software
in some cases works better than GIS software to modify the data.

scott s.

gimp-user-list mailing list

[Gimp Announce]     [Gimp Images]     [GIMP Development]     [Video For Linux]     [Photo]     [Yosemite News]    [Yosemite Photos]    [gtk]     [KDE]     [Scanner]     [Gimp's Home]     [Gimp Docs]     [Gimp on Windows]     [Steve's Art]     [Webcams]     [Share Your Images]     [Free Online Dating]     [Photo Site]     [Script Fu]     [GIMP Software]     [GIMP Books]


Add to Google Follow Gimp on Twitter