Faragiri

Learn Selections and masking Photoshop

A Braga furniture cut-out checked on grey and printed on white, where a checkbox nobody had turned on would have removed the halo.

7Sections
4Min read
4Depth

A selection is a temporary thing and a mask is a permanent one, so convert every selection into a mask immediately. A selection that is refined for twenty minutes and then lost to a stray click is the commonest hour anybody wastes in this program.

Ana cuts out product photographs for a furniture retailer in Braga: chairs against grey, twelve a day, some of them upholstered in a fabric with a fringe.

Four methods, and the last one is the only one for hair

Object selection is the fastest and it is right about eight times in ten, on anything with a clear edge against a clear background. It is where every cut-out starts, and arguing with it costs more than fixing what it produced.

Twelve chairs a day

Four methods, from the one that starts every cut-out to the one hair needs

Ordered by how much of the edge each can describe. Only the top rung can say that a pixel is partly subject and partly background.

  1. 04Select and mask, refine brushper pixel partial membership, which is the only description a strand of wool fitshair
  2. 03The penan exact curve that will be needed again, saved as a path rather than a selection
  3. 02The lassorough additions and subtractions, for the parts the automatic pass got wrong
  4. 01Object selectionright about eight times in ten, in a second, and where every cut-out startsstart here

The rungs are not a sequence to work through. Most cut-outs use the first and the second; the fourth exists for the edges the first three cannot describe at all.

The lasso and the pen are for the corrections: a lasso for a rough addition or subtraction, the pen when the edge is a curve that has to be exact and will be needed again.

Select and mask with a refine brush is what hair and fringe need, and nothing else will do it. It works on the boundary rather than on the shape, deciding per pixel how much of it belongs to the subject, which is the only description that fits a strand of wool.

Two settings that do most of the work

Decontaminate colours removes the fringe of the old background, which is the grey halo that gives away every cut-out done without it. It rebuilds the edge pixels from the subject's own colour, and it is the single setting that separates a professional cut-out from an obvious one.

Inside Select and Mask

Two settings clean up almost every grey fringe

Automatic edges tend to run slightly wide and carry backdrop tint; colour decontamination and a tiny inward shift fix both.

  • Decontaminate colours
  • Shift edge inward by one pixel
  • Decontaminate coloursRebuilds fringe pixels from the subject's own colour to eliminate the old grey halo
  • Shift edge inward by one pixelPulls back overly generous automatic edges so stray background pixels disappear

Decontaminate colours is the single setting that separates a clean commercial cut-out from an obvious pasted edge.

Shift the edge inward by about one pixel. Almost every automatic selection is a fraction too generous, and one pixel of contraction removes the last of the background without eating anything anybody can see.

Non destructive, always

Never delete the background, mask it. A deleted background is gone, and the client who asks for a wider crop next month is asking for the shot to be reshot.

Non-destructive cut-outs

Mask and back up your selection so nothing is ever lost

Deleting background pixels ruins future crops, and an unsaved selection vanishes on the first stray click.

  1. Convert selection to a layer maskPermanent pixel deletion when a wider crop is requested laterBlack hides, white reveals, and grey feathers softly with a brush
  2. Save selection as an alpha channelLosing twenty minutes of edge refinement if someone paints over the maskLightweight permanent backup ready to reload at any time
Protecting cut-out work

Convert every refined selection to a mask immediately, then store an alpha copy before touching a brush.

Black hides and white shows, which is the whole of how a mask is read, and it means a cut-out can be corrected with a brush for as long as the file exists. Painting grey is a partial reveal, which is what a soft edge is.

Keep the selection as an alpha channel too. It costs almost nothing in file size, it survives the mask being edited, and it is the only way to get back to the twenty minutes of work after somebody has painted over it.

The check

Put the cut-out on a colour that is nothing like the original background. A chair cut from grey and checked on grey looks perfect; the same chair on magenta shows every pixel of grey left in the edge, and that is what the retailer's white background will show at print size.

The edge check

Inspect on magenta because matching grey hides every halo

A chair cut from a grey wall looks spotless on grey and fails the moment it hits white catalogue paper.

  • Checked on matching greyFalse confidence on screen
    • Leftover grey pixels blend into the backdrop
    • Two-pixel wool halos look invisible
    • Fails once printed on white stock
  • Checked on bright magentaImmediate visual contrast
    • Nothing in the subject shares the hue
    • Exposes every unmasked grey pixel
    • Catches fringes before two thousand prints run

Proofing background colour

Always place the cut-out over an unrelated bright colour before signing off the mask.

What to open

Select and mask is the workspace this page is mostly about, part of Photoshop, and there is no free tier. It replaces refining an edge with the lasso, which cannot express partial transparency and therefore cannot express hair.

What to open

Both refinement workspaces solve hair, and neither rescues bad light

Photoshop Select and Mask and Affinity Photo's refinement brush handle partial transparency, under one shared physical limit.

  • Photoshop Select and Mask
  • Affinity Photo refinement brush
Needs a usable photo
  • Photoshop Select and MaskBuilt-in partial-transparency brush; subscription only with no free tier
  • Affinity Photo refinement brushComparable hair and wool edge masking for a single one-off purchase

For a studio cutting twelve chairs a day, Affinity's one-off licence lowers software cost, but both tools still depend on separation in camera.

Affinity Photo's refinement brush does the same job for a one-off purchase rather than a subscription, which for a studio cutting out twelve chairs a day is a real difference. Both produce a mask; neither produces a good one from a bad photograph.

Where it stalls: cutting out the wrong photograph

Almost every difficult cut-out is difficult because of the lighting. A chair photographed against a grey wall with a fringe that is also grey cannot be separated by any tool, because the information is not in the file.

Where it stalls

A written lighting brief cuts a forty-minute cut-out to four

When grey wool sits against a matching grey wall, no software tool can invent edge contrast that was never photographed.

Forty-minute software rescueGrey fringe fused into grey background
  1. 01Send one written brief to the shootAsk whoever plans the photography once, in writing, before setup
  2. 02Shoot a second backlit framePlace a light behind the chair to separate wool fibres from the wall
Four-minute clean cut-outClear edge contrast baked into the file

Changing the camera brief is the only step that alters the underlying difficulty rather than just speeding up the clicking.

The hour then goes into technique, which is the wrong place. A second exposure with a light behind the subject, taken at the time, separates the fringe from the wall in the camera and turns a forty minute cut-out into a four minute one.

A retoucher rarely gets to brief a shoot, which is why it is worth making once, in writing, to whoever briefs the shoot. It is the only intervention on this page that changes the work rather than the speed of it.

What it looks like when it goes wrong

A wing chair in a pale grey wool was cut from a pale grey background, carefully, over about fifty minutes, and approved on screen. Printed at A4 on the catalogue's white stock, the fringe carried a grey halo about two pixels wide all the way round, which reads as a shadow that has no source. Two thousand catalogues. The setting that would have removed it is a checkbox in the workspace the cut-out was made in, and nobody had ever turned it on because on a grey background it changes nothing visible.

Braga catalogue incident

How an unchecked box put a sourceless shadow in two thousand catalogues

Approving a grey wool chair on a grey preview hid a two-pixel halo until it hit white A4 paper.

A single tick on Decontaminate colours and a ten-second check on magenta would have caught the halo before press.

What the mask is then used to control belongs to a structure that keeps the file editable, which is non destructive editing, and why it matters. Cut-outs that then have to sit together in one convincing image are several images passing as one photograph. And the twelve tools this workspace sits among are the interface, and the dozen tools that do the work. What the program is for here is one level up, in pixels: retouching, compositing and screen design.

Alongside this

Above this