Cut out a product with a Photoshop mask

Keep the product outline separate from a campaign fade.

Asset preparation5 min read

Use an opaque product photograph for this exercise. The result is an editable cutout that can sit over a new background, with a headline behind the product and a separate fade you can revise later. Keep the layered document; an exported image cannot preserve those controls.

Select the mask before you paint

  1. Open the photograph and Window > Layers. If its layer is a locked Background, click the lock. For a plain new background, click the half-filled circle at the bottom of Layers, choose Solid Color, pick a contrasting color, and drag the resulting fill layer below the photograph. Select the photograph's layer again.
  2. Choose Select > Subject. The dotted outline should enclose the product. If it includes another object or misses part of the package, choose the Quick Selection tool and brush over the missing part; hold Alt on Windows or Option on Mac while brushing to subtract unwanted areas. Do the broad selection now; refine small edges on the mask afterward.
  3. Click Add Layer Mask, the rectangle-with-a-circle button at the bottom of Layers. The selected product should remain visible while its old background disappears. Adobe's selection-to-mask lesson shows that conversion. If the opposite side remains, select the mask thumbnail and press Ctrl+I or Command+I to invert it.
  4. Click the mask thumbnail beside the photograph thumbnail, then select the Brush tool. Use Normal mode and 100% Opacity for an opaque carton repair. Set the foreground swatch to black to conceal an unwanted area or white to restore one. Start with a brush smaller than the defect so the first stroke cannot erase a whole corner.

Unmesh Dinda introduces that visibility model in PiXimperfect's layer-mask lesson. Black and white change where the layer shows; they do not recolor its packaging. Gray gives partial visibility.

Source multiplied by a black-left and white-right mask reveals only the original right half of an orange carton.

Our illustrated example: black conceals the source's left half; white preserves its original right half. The checkerboard represents hidden areas, not artwork to export.

For a headline behind the cutout, use this layer order:

Plain text
Product photograph + cutout mask
Editable headline
New background

The masked product occludes the headline automatically. Change the text to check that the overlap follows the product without repainting letter-shaped holes. If a brush stroke changes the photo's color, undo it and select the mask thumbnail.

Match the boundary to the thing you are hiding

An opaque carton edge should remain opaque. Follow its photographed sharpness: use a defined boundary for a sharp corner and a gradual transition where the source itself softens. Broad feathering across the carton can make the background show through its face.

Inspect against both light and dark temporary backgrounds. If one corner needs repair, change that part of the mask. Use the adjustable Feather control only when the whole boundary needs softening.

A pale fringe may contain old background color inside partially visible pixels. Tightening the mask and correcting that color are different operations; see the cutout preparation guide.

Repair a small area without rebuilding the cutout

If you paint away useful detail on the mask, switch to white and bring it back; this works only while the underlying source pixels remain.

Keep the layer and mask linked when moving the carton. Unlink them only when intentionally moving an image inside a fixed opening, as Dinda demonstrates. Moving the photograph inside a stationary product-shaped mask can cut into one side and expose background on the other.

Give separate revisions separate controls

For a variant that fades the lower carton, leave the cutout mask alone:

  1. Select the masked product layer and choose Layer > Group Layers. Select the resulting group and click Add Layer Mask to give it a white mask.
  2. Select that group mask thumbnail, then the Gradient tool. Choose Classic Gradient if your options bar offers Gradient and Classic Gradient. Use Linear, Normal, 100% Opacity, with Reverse off.
  3. Set foreground to black and background to white. Choose the Foreground to Background gradient preset and confirm its preview runs black to white, with no transparent endpoint.
  4. Drag upward from where the bottom should disappear to where the product should become fully visible. The area below the starting point should be hidden, with a gradual return above it. Undo and drag a longer line for a gentler transition or a shorter line for a tighter fade.

If the top disappears instead, undo and reverse the drag direction. If the carton changes color, stop and select the group mask before trying again.

Shift-click the group mask thumbnail to disable it and confirm that the original cutout is intact; Shift-click again to restore the fade. White on the group mask cannot reveal pixels still hidden by the layer mask. PiXimperfect's double-masking example shows the nested relationship.

Keep the editable source and check what the export contains

Save the layered PSD. Then export for the actual job: a finished ad includes its campaign background; a reusable cutout needs an alpha-preserving format and export setting. Open the delivered cutout on a different background to check real transparency and edge residue.

Multiply can blend a shadow into the scene without creating an alpha channel. Keep shadow corrections on their own layers.

For glass or translucent material, the photographed old background may remain visible inside the object. A mask alone cannot reconstruct a different scene through it; Dinda's translucent-edge lesson illustrates that limit.

The exercise passes when you can change the headline, move the product, disable the fade and recover the intact outline. For product replacements as well as visibility edits, continue with the editable ad template.

Image tools
All guides
Cut out a product with a Photoshop mask | Formatry Media — Formatry