How to Clean Up Hair Selections in Photoshop using Enhance Edge

How to Clean Up Hair Selections in Photoshop using Enhance Edge

Learn how to improve hair and fur selections in Photoshop with the new Enhance Edge feature, which uses AI to clean up color fringing and halos around the edges of your subject when removing them from the background. You'll learn where to find Enhance Edge, how it works, how many generative credits it costs, and which images it can't fix.

Written by Steve Patterson.

Photoshop’s automatic selection features, like Select Subject and Remove Background, can select a complex subject with one click.

But around fine details like hair or fur, even a great selection can leave color fringing, or halos, where color from the original background shows through along the edges.

Adobe’s new Enhance Edge feature is meant to fix this. It’s available in the Photoshop beta starting with version 27.11, and it uses AI to analyze the pixels along the edges of your layer mask and remove the background color bleeding through.

Despite its name, Enhance Edge doesn’t refine your layer mask, and what it actually does may surprise you. In this tutorial, I’ll show you how to use it, how it works, and where it falls short.

Which Photoshop version do I need?

Enhance Edge is currently available only in the Photoshop beta (version 27.11 or higher), not in the official release.

The Photoshop beta is included in your Adobe Creative Cloud subscription and can be installed from the Creative Cloud Desktop app.

Let's get started!

Download all of our Photoshop tutorials as PDFs!

Using Photoshop’s Enhance Edge to remove color fringing

We’ll look at two images: one where Enhance Edge removes color fringing well, and one where it doesn’t (and why).

I’ll start with this image of a woman with long flyaway hair posing against a blue background.

The first image in the Photoshop Enhance Edge tutorial
The original image.

In the Layers panel, the image is on the Background layer.

Photoshop’s Layers panel
Photoshop’s Layers panel.

Start with a layer mask

To use Enhance Edge, we first need a layer mask.

I don’t have one yet, so I’ll remove the woman from the background by clicking the Remove background button in Photoshop’s Contextual Task Bar.

Clicking the Remove background button in the task bar.
Clicking the Remove background button in the task bar.

At first glance, the result looks great. Photoshop did an excellent job separating the woman, including her hair, from the blue background behind her.

The Remove background result
The Remove background result.

Remove Background doesn’t delete the background. It selects your subject and creates a layer mask that hides the background, which we can view in the Layers panel.

Remove background added a layer mask
Remove background added a layer mask.

The details are hard to see in the small thumbnail, so I’ll hold Alt (Windows) / Option (Mac) and click the layer mask thumbnail.

Clicking the mask thumbnail
Clicking the mask thumbnail.

Photoshop displays the full-size layer mask in the document window. The hair detail in the mask is impressive.

To switch back to your image, hold Alt (Windows) / Option (Mac) again and click the layer mask thumbnail in the Layers panel.

Viewing the mask in the document window
Viewing the mask in the document window.

Viewing the color fringing around the edges

The layer mask looks highly detailed, but the original blue background is bleeding into the edges of her hair. We just can’t see it yet.

To view the color fringing, I’ll add a Solid Color fill layer below the image.

I’ll start by clicking the Create New Fill or Adjustment Layer icon at the bottom of the Layers panel.

Clicking the Create New Fill or Adjustment Layer icon.
Clicking the Create New Fill or Adjustment Layer icon.

Then I’ll choose a Solid Color fill layer from the menu.

Choosing a Solid Color fill layer in Photoshop
Choosing Solid Color.

In Photoshop’s Color Picker, I’ll choose black as my fill color and click OK.

Choosing a Solid Color fill layer in Photoshop
Setting the fill color to black.

Photoshop adds the new fill layer above the image, blocking the photo from view.

So in the Layers panel, I’ll drag the fill layer below the image.

Moving the fill layer below the subject.
Moving the fill layer below the subject.

With the cutout of the woman against the black background, the blue color fringing around her hair is now obvious.

This is where the new Enhance Edge feature comes in.

The blue color fringing is obvious against the black background
The blue color fringing is obvious against the black background.

Where to find the new Enhance Edge feature

To access Enhance Edge, first select your layer mask in the Layers panel. It works with any existing layer mask, not only ones created with Remove Background, but the mask has to be selected.

The blue color fringing is obvious against the black background
Selecting the layer mask.

Then click the Enhance edge button in the Contextual Task Bar.

The blue color fringing is obvious against the black background
The Enhance edge button in the task bar.

You can also click the Enhance edge button in the Properties panel. If either button is greyed out, make sure your layer mask is selected.

The Enhance edge in the Properties panel in Photoshop
The Enhance edge in the Properties panel.

An internet connection is required

Enhance Edge uses AI and runs in the cloud, so you’ll need an internet connection. There’s no option to run it locally on your computer (at least not yet).

A progress bar shows how long you’ll need to wait, but it rarely takes more than a few seconds.

The Enhance Edge progress bar in Photoshop
Enhance edge runs in the cloud and takes a few seconds.

When it’s done, the color fringing around the edges disappears.

Enhance Edge in Photoshop removed the color fringing from the hair selection
Enhance Edge removed the color fringing from the hair selection.

On the left is the original Remove Background result with the blue halo around the hair.

On the right is the cleaned-up result after running Enhance Edge.

A comparison of the original hair selection in Photoshop and the cleaned up edges from Enhance Edge
Left: The original hair selection. Right: The cleaned up edges.

Download all of our Photoshop tutorials as PDFs!

How Enhance Edge works (and why the name is misleading)

You may think Enhance Edge enhances the edges of your layer mask. That was my first guess. And like me, you’d be wrong.

Enhance Edge doesn’t touch your layer mask. Instead, Photoshop places the result on a new Enhanced edge layer above your original image layer, with its own copy of the layer mask. It also turns off the original layer.

The Enhanced edges result gets its own layer in the Layers panel.
The Enhanced edges result gets its own layer.

The two layer masks are identical. To prove it, the image on the left shows the original layer mask after running Remove Background, and the image on the right shows the Enhance Edge mask.

See a difference? Me neither.

A comparison of the layer mask before and after running Enhance Edge in Photoshop
Left: The original layer mask. Right: The Enhance edge layer mask.

To see what really happened, I’ll disable the Enhance Edge layer mask by holding Shift and clicking the mask thumbnail.

The X in the thumbnail means the layer mask is turned off.

Turning off the layer mask in the Layers panel.
Turning off the layer mask.

Notice all the new image detail around the hair. Enhance Edge replaced the original edge pixels contaminated with the blue background color with new AI-generated pixels that match the color and tone of her hair.

So instead of cleaning up the edges of your mask, Enhance Edge changes the image itself, which is why it works on a copy of your image instead of the original.

It’s similar to how the Decontaminate Colors option in Select and Mask works, but it uses AI for a better result.

This image shows the AI-generated detail Enhance Edge added to remove color fringing.
Enhance Edge removes color fringing by adding AI-generated detail around the edges.

For comparison, the image on the left is the original, and the image on the right shows the added pixels around the hair after running Enhance Edge.

This image compares the original hair with the hair after running Enhance Edge.
Left: The original hair. Right: The added pixels around the hair.

Yes, the AI-generated detail looks terrible, but only because the layer mask is disabled.

Turning the mask back on shows the true Enhance Edge result, with the edges cleaned up.

This image shows the hair selection from Enhance Edge with the layer mask enabled in Photoshop
The hair looks great with the layer mask turned on.

How many generative credits does Enhance Edge use?

Using Enhance Edge costs 20 generative credits. That makes it one of Photoshop’s more expensive AI features, and it’s a bit surprising for a feature that’s still in beta. There’s no word yet on what it will cost once it reaches the official Photoshop release.

To see how many generative credits you have remaining, click the Check Generative Credits icon in Photoshop’s upper right corner (I think of it as a dice icon because using generative AI always feels like rolling the dice.)

This image shows where to check your generative credits balance  in Photoshop
The Check Generative Credits icon.

Where Enhance Edge struggles (and why)

Enhance Edge works best on images where the color fringing stays close to the edges. If the original background color extends too far inside the edge and into your subject, Enhance Edge won’t be as useful.

Here’s a cute image of a dog against a bright pink background.

Enhance Edge works equally well on fur, not just hair, but I’m using this photo as an example of when it will struggle.

This image is used an an example of where Enhance Edge in Photoshop will struggle
The second image.

After running Remove Background to separate the dog from the background, then adding a black fill layer behind the image, notice how much pink remains around the edges, because the color extends so far into the fur.

It almost looks like the dog was playing in wet paint (and loving every minute of it).

This image shows lots of color fringing around the initial fur selection in Photoshop
The initial fur selection shows lots of color fringing from the background.

This time I’ll choose Enhance Edge a third way, by right-clicking the layer mask thumbnail in the Layers panel and choosing Enhance edge from the menu. Either of the earlier methods works too.

This image shows how to right-click on the layer mask thumbnail and choose Enhance Edge from the menu in Photoshop
Right-click on the layer mask and choose Enhance edge.

Sadly, because too much of the dog’s fur is contaminated by the background color, Enhance Edge couldn’t clean it up.

Even worse, I just wasted 20 generative credits thanks to the AI industry’s no refunds policy.

This image shows an example of Enhance Edge failing to remove the color fringing around the edges
Enhance Edge failed to remove the color fringing in the fur.

And there we have it. The new AI-powered Enhance Edge feature in the Photoshop beta costs 20 generative credits, but it’s a fast and easy way to clean up color fringing in hair and fur selections, as long as the unwanted background color stays close to the edge and doesn’t bleed too far into your subject.

Don't forget, all of my Photoshop tutorials are available to download as PDFs!

Related tutorials: