Sub topic 3
Anti-aliasing and feathering: how selection edges behave
This chapter assumes you can make a basic selection, work in the Layers panel, and use the Options bar. You should also know what a pixel is and that a layer stores a grid of them. The goal is to understand what happens at the border of a selection, because that border decides whether an edit looks clean or looks cut out.
What a selection edge really is
A selection is stored as a grayscale map with one value per pixel. A value of 100% means the pixel is fully selected. A value of 0% means it is not selected. Values in between mean the pixel is partly selected, and any edit affects it in proportion. A fill, an adjustment, or a delete applies at 40% strength to a pixel that is 40% selected.
The "marching ants" outline you see is only an approximation of this map. Photoshop draws the ants along the 50% contour. It does not show the soft transition around that line. This is why a heavily feathered selection can look like a hard outline on screen while its edit fades out smoothly.
Two settings control how the transition at the border is built:
- Anti-aliasing makes the border about one pixel wide so that diagonal and curved edges look smooth.
- Feathering makes the border as wide as you choose so that the edit blends into its surroundings.
They solve different problems and are set in different places. You can use both on the same selection.
Anti-aliasing
Pixels are square, so a curve or a diagonal line drawn on a pixel grid forms stair-steps. Anti-aliasing reduces them. Along the edge, Photoshop assigns partial selection values to pixels that the line only partly covers. Those pixels then end up with colors partway between the subject and the background, and the eye reads the result as a smooth line.
Where the option lives
Anti-alias is a checkbox in the Options bar. It appears for these tools:
- Lasso
- Polygonal Lasso
- Magnetic Lasso
- Elliptical Marquee
It is not available for the Rectangular Marquee, because a rectangle aligned to the pixel grid has no diagonal edges. The Quick Selection tool and the Object Selection tool do not offer it either. Their edges come from analyzing the image, and you smooth them afterward with Select and Mask or Select > Modify.
The setting is applied when you draw
You choose the Anti-alias setting before you make the selection. Changing the checkbox afterward does not alter a selection that already exists. If your edge looks jagged, undo, tick the box, and draw again.
When to turn it off
Leave it on in nearly all cases. Turn it off only when you need a hard, binary edge, for example when you are working on indexed-color artwork or pixel art. In those cases partial pixels would introduce unwanted in-between colors.
Feathering
Feathering blurs the border of the selection. A feather radius of 10 px creates a transition that spreads over roughly 10 pixels on each side of the original line. Edits near the border fade in gradually.
Use feathering when you want a soft transition:
- Lightening or darkening a region without a visible boundary.
- Making a vignette from an oval selection.
- Blending a pasted element into a new background.
- Applying a blur or color change that should fade out.
Avoid it when you want a precise cutout. A feathered selection of a person pulls in some of the old background at the edges, which shows up as a halo around the subject.
Two ways to apply feathering
You can set a feather before you draw, or apply it to an existing selection.
- In the Options bar. The Feather field appears for the Marquee and Lasso tools. Enter a value in pixels before you drag. The selection is feathered as it is created.
- After the fact. Choose Select > Modify > Feather, or press Shift+F6. Enter a radius and click OK. This works on any selection, including one made with Quick Selection or Object Selection.
The second method is more flexible. You can see the result, undo it, and try another value. A feather set in the Options bar stays active until you reset it to 0, and it is easy to forget. Many users have been surprised when their next selection came out blurry.
Feather radius and image size
The radius is measured in pixels, so the same number looks different in different files. A 20 px feather is a gentle blur on a 6000 px wide photo and a very large one on a 600 px wide web graphic. Scale the value to the pixel dimensions of the image, not to a fixed habit.
A rough starting point is about 0.1% to 0.5% of the image width for subtle blending. Adjust by eye after that.
| Image width | Subtle feather | Strong feather |
|---|---|---|
| 600 px | 1 to 3 px | 10 to 30 px |
| 2000 px | 2 to 10 px | 30 to 100 px |
| 6000 px | 6 to 30 px | 100 to 300 px |
The "too small" error
If the feather radius is larger than the selection can support, Photoshop may show a warning: "Warning: No pixels are more than 50% selected. The edges of the selection will not be visible." This happens with a small selection and a large radius. The feather spreads the selection so thin that no pixel reaches 50%, and there are no marching ants to draw. The selection still exists, and edits still apply faintly. Undo and reduce the radius, or enlarge the selection first.
Seeing the real edge
Because the marching ants show only the 50% line, you often cannot judge a feathered edge from them. Two methods show the actual map.
- Quick Mask mode. Press Q. The unselected area is tinted red, and the feather appears as a gradient from solid red to clear. Press Q again to return to the selection.
- Save as a channel. Choose Select > Save Selection. In the Channels panel, view the new alpha channel. White is fully selected, black is not, and gray is partial.
Both methods also let you paint on the map directly. A white brush adds to the selection, a black brush removes from it, and a soft brush produces soft edges.
Worked example: a soft spotlight
This example uses a feathered ellipse to brighten the center of a photo.
- Open a photo and unlock or keep the Background layer.
- Choose the Elliptical Marquee tool. Leave Feather at 0 px and tick Anti-alias.
- Drag an oval over the area you want to highlight.
- Choose Select > Modify > Feather and enter a radius of about 8% of the image width. For a 2000 px wide photo, use 160 px.
- Press Q to confirm the edge is a smooth gradient, then press Q again.
- Choose Layer > New Adjustment Layer > Curves. The selection becomes the adjustment layer's mask automatically.
- Raise the curve to brighten. The brightness fades into the rest of the photo with no visible boundary.
The adjustment layer keeps the feathered selection as a layer mask. You can change the curve or repaint the mask later without redoing the selection. Chapter 10 covers masks in detail.
Anti-aliasing versus feathering at a glance
| Property | Anti-aliasing | Feathering |
|---|---|---|
| Edge width | About 1 px | Set by you, often many pixels |
| Purpose | Remove jagged stair-steps | Blend the edit into surroundings |
| Where set | Options bar checkbox, before drawing | Options bar before drawing, or Select > Modify > Feather afterward |
| Applies to existing selection | No | Yes, through Select > Modify |
| Typical use | Cutouts and precise shapes | Vignettes, blending, soft adjustments |
| Risk | Almost none | Halos and soft, muddy edges |
Common problems
- Jagged edges on a lasso selection. Anti-alias was off when you drew it. Undo, enable it, and redraw.
- Halo of old background around a cutout. The feather was too large, or the selection sat outside the subject. Reduce the radius or contract the selection by a pixel or two with Select > Modify > Contract.
- No visible marching ants after feathering. The radius is too big for the selection. Undo and use a smaller value.
- New selections are soft for no obvious reason. The Options bar Feather field still holds an old value. Reset it to 0 px.
- Edge looks sharp on screen but the edit fades. The ants mark only the 50% line. Check in Quick Mask mode.
Exercise
You select a person with the Object Selection tool, then apply Select > Modify > Feather with a radius of 40 px on a 1200 px wide photo. After you copy the selection to a new layer, a ring of the old background shows around the person. What caused it, and what are two ways to fix it?
Show answer
The 40 px feather made the selection edge partly selected over a wide band, so pixels of the old background near the person were copied with partial opacity. The photo is small, so 40 px is a very strong feather. Fixes: undo and use a much smaller radius, such as 1 to 2 px. Or contract the selection with Select > Modify > Contract before feathering so the band falls inside the subject.
Exercise
You tick the Anti-alias box in the Options bar after drawing a Lasso selection that looks jagged. Nothing changes. Why, and what should you do?
Show answer
Anti-aliasing is applied at the moment the selection is created, so changing the checkbox does not affect an existing selection. Undo the selection, make sure Anti-alias is ticked, and draw it again.
Exercise
You feather a small selection by 100 px and Photoshop warns that no pixels are more than 50% selected. What does the warning mean, and does the selection still exist?
Show answer
The feather spread the selection so thin that no pixel reaches 50%, so Photoshop cannot draw marching ants. The selection still exists and edits apply faintly. Undo and use a smaller radius, or start with a larger selection.