Refine Lightroom masks for smoother, more precise edges

My latest tutorial for Adobe Learn is now live, and it covers two sliders that give you a lot more control over AI masks in Lightroom and Lightroom Classic: Feather and Edge.

AI masks can select almost anything in a single click, but the edge of that selection isn't always quite right, and that's what these two sliders are for.

You can watch the tutorial on Adobe Learn, and there are practice files to download on the same page if you'd like to follow along.

A tree in a field under a blue sky on the left, with the same tree shown as a white on black Lightroom mask on the right

What Feather and Edge do

Create a mask with Subject, Background, Sky, People or Landscape and you'll find both sliders at the top of the mask settings.

Feather softens the edge of the mask, so you get a smoother transition between what's selected and what isn't. Edge moves the edge itself; drag it to the right and the mask grows outwards, drag it to the left and it shrinks back in, which is really handy when a selection is a little too tight or a little too generous.

They only appear on AI-generated masks though, and that matters a bit later on.

A quick example with a heron

The first picture in the tutorial is a heron, selected with Subject. I wanted it to stand out a little more with some exposure, but zoomed in on the head and neck the mask looks a little rough and spills out onto the water.

A little Feather and Edge sorts that out, so when the exposure goes up the heron is brighter but still blends into the background.

A tree against the sky

The second picture is a much tougher job; a tree with the sky showing through all the gaps between the leaves and the branches.

I open Masking, choose Landscape, tick Vegetation and click Create, and Lightroom selects the tree, the ground and the hedging along the edge of the field. It's a good start, but in places the sky between the branches has been included too.

The easiest way to see this is to click the three dots at the bottom right of the Masking panel and switch to White on Black. Anything white is in the mask and anything black isn't, so the solid white patches in the tree where the sky shows through are the bits that need fixing.

Taking the sky out with Color Range

To remove the sky I click Subtract and choose Color Range, then click and drag over the blue sky, down to just above the horizon, so the sample takes in all the different tones.

Let go, and the sky drops out of the mask between the branches and the leaves.

Softening the edges of the leaves

It's a great result, but the mask now looks a bit too sharp around the branches and leaves, so it's back to Feather and Edge.

Click on the Color Range part of the mask and there's no Feather or Edge, but click on the Vegetation part, the AI part, and there they are. Each AI part of a mask has its own Feather and Edge settings, so you can fine-tune just that piece.

I add a little Feather to soften the edges and make a small adjustment to Edge to tighten the mask around the leaves. Warming things up with the Temperature slider then brings the tree to life and warms the ground around it too, with no hard line where the tree meets the sky.

Using the same mask for the sky

Hover over the mask you've just made, click the three dots and choose Duplicate and Invert Mask.

Now only the sky is masked, and because it's built from the mask that's already been fine-tuned, the tree and the sky meet cleanly. I bring the exposure down a little and add a touch of warmth with the Temperature slider; two masks, and the whole picture has changed.