- Updated
- Digerati
- Tips & Tricks
- 924
- 0
The Pen tool draws paths made of anchor points and straight or curved segments, and a path can become a selection, a layer mask or a vector mask. That makes it the most precise way to cut out a product, a building or any object with clean, hard edges. Draw a closed path around the object in Path mode, save it in the Paths panel, then turn it into a vector mask or load it as a selection. The sections below cover each step, plus editing anchors later and knowing when a faster tool is the better pick.
Paths, Anchor Points and Handles
Most selection tools judge pixels. Quick Selection, for example, looks for similar color and texture where you paint. The Pen tool ignores the image. You place anchor points, Photoshop connects them, and the result is a path: a mathematical outline on top of your photo. Because it is not made of pixels, its edge stays crisp when you zoom in or scale the layer.
- Anchor points mark where a segment starts or ends.
- Segments are the straight or curved lines between anchor points.
- Handles (Adobe calls them direction lines) appear on curved segments. Their position and length decide how the curve bends.
A smooth point has handles on both sides that move together, so the curve flows through it. A corner point has handles that work independently, or none, so the path can turn sharply. A bottle shoulder is mostly smooth points. The corners of a box or phone screen are corner points. Place points where a curve starts and ends, and let the handles shape the stretch between them. Fewer points mean a smoother edge and easier edits later.
Pen Tool Modes: Path, Shape and Pixels
The options bar has a mode menu, and it changes what your clicks produce.
- Path draws an outline on the selected layer without creating a new layer. It appears as a Work Path in the Paths panel. This is the mode for selections and masks.
- Shape creates a shape layer: a fill layer with a linked vector mask. It suits icons and graphics, not photo cutouts.
- Pixels paints a rasterized shape onto the current layer. Adobe lists it for the shape tools rather than the Pen, and it leaves no path to edit, so it has no place in masking.
Two settings help. Rubber Band, under the gear icon in the options bar, previews the next segment as you move, so you see where a curve will land. Auto Add/Delete lets you add an anchor point by clicking a path segment and remove one by clicking it.
How to Draw Straight and Curved Segments
- Pick the Pen tool (P) and set the mode to Path.
- Straight segment: click to place a point, then click where the segment ends. Hold Shift to constrain the line to multiples of 45 degrees.
- Curved segment: click and drag instead of clicking. The drag pulls handles out of the new point. Release, move along the edge, and click and drag again.
- Curve into a corner: hold Alt (Windows) or Option (Mac) and click the point you just placed. That converts it to a corner point so the next segment can leave in a new direction.
- Close the path: hover over the first point until a small circle appears beside the pointer, then click.
Curvature Pen and Freeform Pen
Both share a toolbar slot with the standard Pen. Pick them from the flyout, or press Shift+P to cycle (this relies on the Use Shift Key for Tool Switch preference being on).
The Curvature Pen works out the curve between points you click, so there are no handles to drag. Double-click to add a corner point, double-click an existing point to switch it between smooth and corner, and press Esc to finish an open path. It suits rounded, organic outlines, while the standard Pen is more predictable at tight bends and sharp corners.
The Freeform Pen draws as you drag, closer to a pencil than to placing points. The path tends to wobble and carry extra points, so it is a poor fit for a precise cutout.
The Paths Panel
Open it with Window > Paths. It lists each saved path, the current work path and the current vector mask. A vector mask belongs to its layer, so select that layer to see it listed.
- Work Path: the temporary path from Path mode. Save it by double-clicking its name, or choose Save Path from the panel menu to name it.
- Bottom buttons: Load Path as a Selection and Make Work Path from Selection.
- Deselect: click an empty area of the panel.
Name paths after the object, such as bottle-outline. The reverse direction is handy too. If Select > Subject gets an edge nearly right, click Make Work Path from Selection and fix the weak spots with the Direct Selection tool. Alt-click or Option-click that button for a tolerance setting from 0.5 to 10 pixels: lower values follow the edge closely with more points, higher values give fewer points and a smoother path.
Turn a Path into a Selection
- Select the saved path in the Paths panel.
- Click Load Path as a Selection, or Ctrl-click (Windows) or Cmd-click (Mac) the path thumbnail. This uses your current feather and anti-aliasing settings.
- For control, Alt-click or Option-click the button, or choose Make Selection from the panel menu. The dialog offers Feather Radius, Anti-aliased, and an operation: New, Add, Subtract or Intersect. Keep Feather Radius at 0 for a crisp cutout.
- With the selection active, click Add Layer Mask at the bottom of the Layers panel, or choose Layer > Layer Mask > Reveal Selection. Alt-click or Option-click the button, or choose Hide Selection, to hide the selected area instead.
White in the mask reveals the layer and black hides it. For painting and refining the mask, see advanced layer masking, and clipping masks versus layer masks explains when each fits. To keep the selection for later, save it as an alpha channel.
Vector Mask vs Layer Mask
| Feature | Layer (pixel) mask | Vector mask |
|---|---|---|
| Made of | Grayscale pixels | A path |
| Edge | Hard or soft | Crisp, resolution independent |
| Edited with | Brush, gradients, selections | Pen and Direct Selection |
| Best for | Hair, shadows, soft transitions | Product edges, geometry |
To create a vector mask, draw a path in Path mode, select the layer, then click the Vector Mask button in the Properties panel or choose Layer > Vector Mask > Current Path. With no path yet, choose Layer > Vector Mask > Reveal All (or Hide All) and draw afterwards. In the Properties panel, the Density slider controls the mask's opacity and Feather softens its edge. Shift-click the thumbnail to disable it, and use Layer > Vector Mask > Delete to remove it.
One warning: Layer > Rasterize > Vector Mask converts it to a pixel mask, and that cannot be reversed. Do it on a duplicate.
Edit Anchors Afterwards
This is the main reason to choose a path-based mask. Select the layer, click the vector mask thumbnail, then use the Direct Selection tool (A) to drag points, segments and handles. Shift-drag constrains movement to multiples of 45 degrees. The Path Selection tool shares the A key and moves a whole path.
- Add or remove a point: with Auto Add/Delete on, click a selected path segment to add one, or click a point to remove it.
- Change a point type: use the Convert Point tool, or the Pen with Alt or Option held. Clicking a smooth point removes its handles. Dragging a handle out of a corner point makes it smooth.
- Switch tools quickly: while drawing with the Pen, hold Ctrl (Windows) or Cmd (Mac) for the Direct Selection tool.
When the Pen Tool Beats Quick Selection and Select Subject
Select Subject (Select > Subject) detects the most prominent subject in one step. Object Selection picks one object when an image holds several. Quick Selection paints a selection from color and texture similarity. All three read pixels, which is why they are fast and why they struggle in certain spots.
Reach for the Pen when:
- The object has straight edges or geometric curves, such as boxes, devices, packaging or buildings.
- Object and background are close in color or tone, so a color-based tool has little to latch onto.
- Reflections on glass or metal blur the line between object and background.
- You want an outline you can reshape later or reuse across several shots.
Use the automatic tools for hair, fur, foliage or soft shadows. A path cannot describe thousands of fine wisps, so a pixel mask, often built with a luminosity mask, suits those edges. Often the best answer is a mix: start with Select Subject, convert it to a path, and correct only the weak sections.
Worked Example: Cutting Out a Product
- Duplicate the photo layer with Ctrl+J (Windows) or Cmd+J (Mac) so the original stays safe underneath.
- Choose the Pen tool and set the mode to Path. Switch on Rubber Band if you want a live preview.
- Zoom in until the edge you are tracing fills most of the screen. Start at a corner and click along each straight edge, holding Shift for horizontal or vertical runs.
- On rounded areas, click and drag to pull out handles. Put points where each curve begins and ends.
- Before a sharp corner, Alt-click or Option-click the last point so the path can change direction cleanly.
- Close the path on the first point. If the product has a hole, such as a handle, draw a second path around it and set the path operations menu in the options bar to a subtract option.
- Double-click the Work Path and save it with a clear name.
- Choose Layer > Vector Mask > Current Path. The background disappears and the edge stays editable.
- Place a contrasting solid color layer underneath and look for gaps or fringes. Nudge problem points with the Direct Selection tool. If the edge looks harsh, add a very small Feather in the Properties panel.
You can then convert the layer to a Smart Object for reuse, which our guide to masking Smart Objects covers. When you place the product in a new scene, targeted color correction helps it match, and realistic photo compositing covers shadows and lighting.
Soft Edges: Mixing Vector and Pixel Masks
A vector mask gives one hard edge, and Feather softens it evenly all round. If a product also has a soft shadow or faded reflection, either load the path as a selection, add a layer mask and paint softness where needed, or keep the hard-edged object on its own layer with a vector mask and put shadows on separate layers below, each with a pixel mask. The same split works for architecture: Pen for the roofline, pixel mask for the trees beside it, which suits sky replacement shots.
Common Mistakes
- Drawing in Shape mode. You get a filled layer instead of an outline. Switch to Path mode.
- Too many points. Bumpy edges usually mean over-clicking. Remove extras and let handles do the curving.
- An unclosed path. The last click must land on the first point. Look for the small circle.
- An unsaved Work Path. It is temporary until you save it.
- Feathering in Make Selection. A Feather Radius above 0 gives a soft edge you did not intend.
- Tracing outside the edge. That leaves a halo of background. Trace just inside the edge.
- Rasterizing too early. It removes your anchor points for good.
Useful Shortcuts
Windows and Mac differ only in the modifier: Ctrl and Alt on Windows become Cmd and Option on Mac.
- P: Pen tool. Shift+P: cycle the Pen group.
- A: Direct Selection tool. Ctrl or Cmd while using the Pen: temporary Direct Selection.
- Shift: constrain to 45 degrees.
- Alt or Option: convert a smooth point to a corner point.
- Ctrl or Cmd-click the path thumbnail: load it as a selection.
- Ctrl or Cmd-click Add Layer Mask: create a vector mask. Shift-click its thumbnail: disable it.
Related Reading
Draw in Path mode, keep the point count low, save the path, then decide what it becomes: a vector mask for edges you want to keep editable, or a selection for a pixel mask when you need soft areas too. Use the automatic tools where the edge is forgiving, and bring out the Pen where precision counts.
Comments (0)