: How to select color with gimp I am trying to select by color in Gimp this image: but when I select by the foreground color, also the antialiased pixels in the border are selected. How
I am trying to select by color in Gimp this image:
but when I select by the foreground color, also the antialiased pixels in the border are selected.
How to select only the foreground color in Gimp?
Thanks
More posts by @Turnbaugh909
2 Comments
Sorted by latest first Latest Oldest Best
Your image is not black-on-white; it's all black with variable transparency. When you tell GIMP to select only the black pixels, it will select all the pixels, except those that are fully transparent, since as far as GIMP is concerned, those pixels are all black.
One way to make it work as you seem to expect (i.e. only select the pixels that are 100% opaque black) would be to first flatten the layer by using Layer → Transparency → Remove Alpha Channel. This will replace any transparent parts of the layer with the current background color (white, by default), turning it into an opaque black-on-white image.
That said, I'm not sure why you'd want to select only the opaque areas of the image. Whatever it is that you're trying to do, there are probably better ways to do it.
In particular, if you want to create a selection that exactly matches the outline of the image, including the anti-aliasing at the edges, you can do that with Layer → Transparency → Alpha to Selection. This will make the opaque black pixels fully selected, and the semi-transparent pixels around them partially selected, in proportion to their opacity. (The selection outline will appear somewhere in the middle of the semi-transparent area, but that's just an approximation of the true selection mask. You can see the actual selection more clearly by toggling the Quick Mask with Shift+Q.)
Under 'Tool Options' of 'Select by Color Tool' set the 'Threshold' slider to 0, it will only select exactly the same colors.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.