Take the 2-minute tour ×
Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. It's 100% free, no registration required.

Just like in Paint, how can I do a "transparent selection"? For example, if red is the background color and I select a part of an image with red in it, I want my selection to consider the the red to be transparent.

Or equivalently : How can I change a specific color inside a selection to transparent?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Transparent selection with GIMP

Below are some possible approaches using default GIMP 2.8. without additional plugins.

Color to Alpha:

To make the background color in a selection transparent we may take the following steps:

  1. enter image description here Edit - Copy the selection
  2. enter image description here Edit - Paste the selection
  3. enter image description here Colors - Color to Alpha... choose background color

Note that in the example above the color channel for red is completely made transparent leading to a "transparency" with color shift in the grey area too. Depending on our source this may not be what we wanted.

Select By Color

  1. Edit - Copy the selection
  2. Edit - Paste as - New Image to work on a new image
  3. enter image description here Tools - Selection Tools - By Color Select selects all the background
  4. enter image description here Delete the selection
  5. Select - Invert
  6. Edit - Copy the selection
  7. enter image description here Edit - Paste the selection to our source.

Again, depending on the source image we may find it faster to apply the By Color Select tool directly on the image background, invert this selection, then copy & paste it to the destiny (or as a new image for further processing).

share|improve this answer
    
That is good, but I tried the second method and there is still a small line of red around the selection. –  Gradient Jun 10 '13 at 15:06
    
I think your answer is the closest to what I want to do. –  Gradient Jun 10 '13 at 20:55
    
Thank you - but don't hesitate to unaccept if a better solution comes in - I would love to see that myself ;) –  Takkat Jun 10 '13 at 21:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.