Sub topic 7
Tracing selections with the Lasso tools
This chapter assumes you know the Photoshop workspace (toolbar, Options bar, Layers panel), the difference between a layer and the Background, and the New/Add/Subtract/Intersect selection modes from earlier chapters. It also assumes you are comfortable holding Shift and Alt (Option on macOS) while you drag.
The Lasso tools build a selection from a path that you trace yourself. Quick Selection and Object Selection guess at edges by analyzing the image. The Lasso tools do not guess. They select what you outline, or, in the case of the Magnetic Lasso, what they can snap to along a contrast edge. That makes them the right choice when automatic tools fail: low-contrast edges, shapes with straight sides, small cleanup areas, and regions you want to define by hand.
The three Lasso tools
The Lasso tools share one slot in the toolbar, and you reach the others by clicking and holding the tool or by pressing Shift+L to cycle through them.
| Tool | How you draw | Best for |
|---|---|---|
| Lasso | Freehand: hold the mouse button and drag | Loose outlines, rough areas, quick cleanup of another selection |
| Polygonal Lasso | Click to place points joined by straight segments | Buildings, signs, screens, boxes, any straight-sided shape |
| Magnetic Lasso | Click once, then move along an edge. It places fastening points on its own | Subjects with a clear contrast edge against the background |
All three produce an ordinary selection. Once you close the outline, the result is the same kind of selection you get from any other tool, so you can add to it, subtract from it, feather it, or send it to Select and Mask.
The Lasso tool: freehand tracing
Choose the Lasso tool (L). Press and hold the mouse button, drag around the area, and release. Photoshop closes the outline for you by drawing a straight line from the point where you released back to the point where you started.
That automatic closing is the main thing to know about the plain Lasso. If you release the button early, the selection includes a straight "shortcut" across the shape, which is often not what you want. Plan your path so that the start and end points are close together, or finish by returning to the starting point.
Switching between freehand and straight segments
You can mix freehand and straight lines in a single outline without switching tools:
- With the Lasso tool active, start dragging a freehand path.
- Hold Alt (Windows) or Option (macOS) and release the mouse button. The tool temporarily acts like the Polygonal Lasso.
- Click to place straight-segment points. Each click adds a corner.
- To go back to freehand, hold the mouse button down, then release Alt/Option and keep dragging.
- Release the mouse button with Alt/Option not pressed to close the selection.
Order matters here. If you release Alt/Option before pressing the mouse button, you can end the shape early. Press the mouse button first, then let go of the key.
A hand-drawn outline is only as steady as your hand
A mouse produces a shaky path, and the Lasso records every wobble. Two habits help:
- Zoom in (Ctrl/Cmd + plus) so each mouse movement covers less of the subject.
- Work in short passes. Use Add mode (hold Shift) to build the selection from several small strokes instead of one long one. If a stroke goes wrong, you can undo only that stroke.
The Polygonal Lasso tool: straight edges
Choose the Polygonal Lasso. Click once to set the starting point, move the pointer, and click again to set the next point. Photoshop draws a straight line between each pair of clicks. To finish, either:
- Click on the starting point. A small circle appears beside the pointer when you are over it, which means the outline will close.
- Double-click anywhere. Photoshop closes the outline with a line back to the start.
Useful controls while you are placing points:
- Delete (Backspace on Windows) removes the last point you placed. Press it repeatedly to step back through earlier points.
- Hold Shift while you click to constrain the next segment to a multiple of 45 degrees. This gives clean horizontal, vertical, and diagonal lines.
- Hold Alt/Option and drag to temporarily switch to freehand, then release the mouse button to return to straight segments.
- Press Esc to cancel the whole outline if it has gone wrong.
For a photographed rectangle such as a poster on a wall, the poster edges are usually not horizontal or vertical because of perspective. Do not use Shift for those. Place each point exactly on a corner instead, and zoom in so that the corner clicks are accurate.
The Magnetic Lasso tool: snapping to edges
The Magnetic Lasso analyzes pixel contrast as you move the pointer. It lays down a line that snaps to the strongest nearby edge and adds square fastening points along it to hold the line in place.
To use it:
- Choose the Magnetic Lasso tool.
- Click once on the edge of the subject. This sets the first fastening point.
- Release the mouse button and move the pointer along the edge. You do not need to hold the button down.
- If the line drifts off the edge, click to place a fastening point manually where you want it.
- To close the outline, move back to the starting point and click, or double-click to close it with a straight line.
You can press Esc to cancel, and Delete/Backspace to remove the last fastening point. If you find the line has strayed, remove points back to the last good one and continue from there.
Magnetic Lasso options
These options appear in the Options bar and determine how closely the tool follows an edge.
| Option | Range | What it does | When to change it |
|---|---|---|---|
| Width | 1 to 256 pixels | How far from the pointer the tool searches for an edge | Use a small width for thin or crowded edges, and a larger width when your pointer movement is loose |
| Contrast | 1% to 100% | How much brighter or darker the edge must be compared with its surroundings to be detected | Use a high value for crisp, high-contrast edges, and a low value for soft ones |
| Frequency | 0 to 100 | How often the tool places fastening points. A higher value places more of them | Use a high value for intricate edges, and a low value for smooth ones |
| Pen Pressure | On or off | With a pressure-sensitive stylus, harder pressure narrows the width | Turn on if you work with a tablet |
While you work, you can adjust the Width with the square-bracket keys: [ makes it smaller and ] makes it larger. This is quicker than going back to the Options bar when the edge changes character halfway around the shape.
When the Magnetic Lasso fails
The tool follows contrast. When contrast is missing or misleading, it makes mistakes:
- Low contrast. Where the subject and background have similar brightness and color, the line slides off the edge. Lower the Contrast value, slow down, and click manually to place points.
- Busy backgrounds. Patterns, texture, or strong shadows near the edge offer many competing edges. Reduce the Width so that the search area stays tight.
- Soft or blurred edges. Motion blur and shallow depth of field spread the edge over many pixels. The tool cannot find a sharp transition, and you may do better with Select and Mask.
- Fine detail. Hair, fur, and foliage have too many edges. The Magnetic Lasso will not capture them cleanly. Use another tool for those areas.
Common options for all three tools
The Options bar for each Lasso tool contains the four selection-mode buttons (New, Add, Subtract, Intersect), a Feather field, and an Anti-alias checkbox. These settings apply to the next selection you draw, not to one that already exists.
- Anti-alias smooths the jagged stair-step edge by blending edge pixels. Leave it on for nearly all work.
- Feather blurs the selection boundary by the number of pixels you enter. The default is 0 px.
A common mistake is typing a Feather value in the Options bar, forgetting about it, and then wondering why every later selection has soft edges. If a selection looks blurry for no reason, check this field first. To soften an existing selection instead, use Select > Modify > Feather, which applies to the current selection only.
The Lasso tools also work with the mode keys you have already learned:
- Hold Shift before you start dragging to add to the existing selection.
- Hold Alt/Option before you start dragging to subtract.
- Hold Shift+Alt (Shift+Option) to intersect.
Release the modifier key after you begin the stroke where the behavior requires it. For the freehand Lasso, holding Alt/Option after the drag begins switches to the straight-segment behavior described above, so the timing of your key presses matters.
Using the Lasso tools to clean up other selections
The Lasso tools are most often used as a second step. An automatic tool does most of the work, and a Lasso corrects the mistakes.
- Remove spill. Quick Selection often picks up a bit of background. Hold Alt/Option and draw a Lasso loop around the unwanted area to subtract it.
- Fill a gap. If Object Selection leaves a hole inside a subject, hold Shift and draw around the hole with the Lasso.
- Straighten an edge. If a selection of a building has a wavy side, subtract the bulge and add the missing sliver with the Polygonal Lasso.
- Limit a selection to a region. Make a rough Lasso selection around the area of interest, then use Intersect mode with another tool so that the result stays inside your outline.
The following diagram shows a typical workflow.
A worked example
Suppose you have a photo of a building with a sky behind it, and you want to replace the sky. The roofline is made of straight lines, and a tree overlaps one corner.
- Choose the Polygonal Lasso. Zoom to 100% or more.
- Click on the bottom-left corner of the building and place a point at each corner of the roofline. Use Shift only where a line is truly horizontal or vertical.
- Continue around the building and close the outline by clicking on the first point.
- Switch to the Lasso. Hold Shift and draw a loose loop around the tree leaves that overhang the roof, so that you include them in the building selection.
- Hold Alt/Option and, with the Lasso, subtract any areas of sky visible through gaps.
- Choose Select > Inverse if you need the sky instead. Then open Select and Mask for edge refinement.
Because the roofline is straight, the Polygonal Lasso gives a cleaner edge than a freehand path would, and the Lasso handles the organic tree shape where straight lines would look wrong.
Choosing among the three
Pick by the shape of the edge, not by habit.
- Straight edges with corners: Polygonal Lasso.
- Clear, continuous contrast along a curved edge: Magnetic Lasso.
- Rough areas, small corrections, or anything with weak contrast: Lasso.
If you find yourself fighting a tool for more than a minute, change tools. Mixing is normal, because every Lasso adds to the same selection.
Exercise
You are tracing the edge of a signboard with the Polygonal Lasso. You have placed six points and realize that the last two were misplaced. What is the fastest way to fix this without starting over, and what should you hold if you want the next segment to be perfectly horizontal?
Show answer
Press Delete (Backspace on Windows) twice to remove the last two points, and then click again at the correct positions. Hold Shift while clicking to constrain the next segment to a multiple of 45 degrees, which includes horizontal.
Exercise
A Magnetic Lasso line keeps jumping to a shadow next to your subject instead of staying on the subject's edge. Name two adjustments that can help.
Show answer
Reduce the Width so that the search area is narrower, and increase the Contrast so that only strong edges are detected. You can also click manually to place fastening points where the line drifts, or lower the Frequency if too many points are set on the wrong edge.
Exercise
You have a selection made with Quick Selection that also includes a patch of background. How do you remove it using the Lasso, and which key do you hold?
Show answer
Choose the Lasso, hold Alt (Windows) or Option (macOS) before you start dragging, and draw a loop around the unwanted patch. The outline is subtracted from the existing selection.