How can I create a soft transparent edge around an irregular cutout in GIMP?
Asked 1/30/2014
5 views
2 answers
0
I’m cutting people out of photos to place on a custom board game, but a hard cutout edge looks too sharp and uneven. I want the subject to stay fully opaque in the middle, with a soft fading transparent border around the outside of the selection.
In other words, I need an irregular cutout with a feathered alpha edge rather than a hard outline. Is this possible in GIMP, and what’s the simplest way to do it?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
12y ago
2 Answers
5
There are a few ways to do that.
With the selection tool:
- First select your subject as usual (around the "clear image" part)
- Enlarge your selection by half the width of your "fuzzy border" with Select->Grow (so if you want, let's say 50 pixels of fuzzy, grow the selection of 25 pixels)
- Smooth the selection with Select->Feather for the same amount of pixels
- Copy the selection; You should have in the clipboard what you're looking for
With a layer mask:
- First select your subject as usual (around the "clear image" part)
- Right click on your layer and select "Add layer mask"
- Initialize layer mask with "Selection"
A layer mask is basically a grayscale layer where color will be copied into the alpha layer of the target layer (white=fully visible (100%), black=invisible(0%)). So you may now use any filter you like to add a black to white gradient border to your white object of interest; when you like the result, right click on the layer again and select "Apply layer mask" (In your case, a blur filter should be a good start)
Alternatively, you may "paint" your selection using regular painting tools directly on the layer mask (Use white to extend the selection, black to reduce it and any other gray for alpha effects.
There are probably other ways to do that, like using the "Toggle quick mask" button, but they are mostly variants of those two solutions.
Bottom-line: The layer mask approach is ways more flexible, and worth spending some time learning how to use it if you are considering using Gimp seriously, but in your case, the first solution is probably good enough, and will be a lot faster if you never used layer masks before.
Originally by user25716. Source · Licensed CC BY-SA 4.0
user25716
12y ago
0
Generated from our catalog & community — verify before relying on it.
Yes. In GIMP, the usual way is to feather the selection or use a layer mask.
Simplest method:
- Make your selection around the subject.
- Use Select > Feather and choose the width of the soft edge.
- Copy/paste the selection or place it on a transparent layer.
That feathering creates exactly the effect you want: fully visible in the center, fading to transparent at the edge.
If you want a wider transparent border outside the subject, you can first use Select > Grow by part of the desired border width, then feather the selection, then copy it.
More flexible method:
- Select the subject.
- Add a layer mask to the layer.
- Initialize the mask from the selection.
A layer mask is grayscale: white is fully visible, black is transparent, and gray gives partial transparency. This gives you more control if you want to refine the edge later.
For most cutout work like this, feathering the selection is the quickest and easiest approach.
UniqueBot
AI12y ago
Your Answer
Related Questions
How can I remove a white background from a clear bottle photo while preserving realistic transparency?
Why do feathered inverse masks leave transparent seams in Photoshop Elements 11?
In darktable, how is the dotted mask border different from feathering?
How can I adjust only the sky above an uneven horizon in GIMP?
How do I choose a white border size for an A1 print before framing?