A woman in a vintage-style outfit with a yellow headscarf sits outdoors with the background softly blurred, from a tutorial on automatically blurring backgrounds using the Depth Blur neural filter in Photoshop.
  • Automatically Blur Backgrounds in Photoshop

  • Aaron Nace
    by Aaron Nace
    July 27, 2021
  • Add to
    favorites

Download Sample Image & PSD

Download Assets

This tutorial includes 1 sample image, 1 sample PSD and 1 PDF guide. Downloads are free with a PHLEARN account.

  • Download the sample images and PSDs from every free tutorial on PHLEARN
  • New free tutorials published every week
  • One free account — sign up once, then download anything
Download

Free PDF Guide · 2 Pages

This Tutorial as a Step-by-Step PDF

The 2-page guide walks through Filter > Neural Filters > Depth Blur, clicking a focal point, Blur Strength and Focal Range, output to Duplicate Layer Masked, painting black on the mask, painting out halos on a new layer and Filter > Noise > Add Noise at a low amount. Keep it next to your keyboard.

Download the PDF Guide · 0.3 MB

description

Learn how to blur any background in just a few clicks using Photoshop’s new Depth Blur Neural Filter! See how this new automated tool holds up, and how we can use some traditional Photoshop tricks to refine the effect.

Artist Credit

Image sourced from Pexels.

Portrait of a woman wearing a yellow bandana, resting her chin on her hand in front of a tuk-tuk and building, background in focus
Portrait of a woman wearing a yellow bandana, resting her chin on her hand in front of a tuk-tuk and building, with the background automatically blurred
AfterBefore

How to Automatically Blur Backgrounds with the Depth Blur Neural Filter

A woman in a vintage-style outfit with a yellow headscarf sits outdoors with the background softly blurred

Neural Filters are some of the latest tools designed to help us work faster than ever, automating processes that would otherwise eat up a lot of editing time. This tutorial takes a close look at the Depth Blur filter, built to blur backgrounds automatically and help a subject stand out. It’s still in beta development, so you’ll need the latest version of Photoshop and an active internet connection to use it.

What the Depth Blur Filter Is For

You’ve got a nice portrait, but you wish the subject were separated a little more from the background and environment.

The Depth Blur neural filter in Photoshop

Ideally this would be done in-camera by opening up the aperture for a shallower depth of field. Depending on the lens, the lighting conditions and the rest of your gear, that isn’t always possible on location.

It’s no surprise, then, that editors have worked out a number of ways to recreate the effect in Photoshop. Doing it realistically has always been equal parts difficult and time-consuming, which is where the Depth Blur Neural Filter comes in, promising a shallow depth of field in a few clicks.

Opening the Neural Filters Dialog

Open an image with a clear, in-focus subject and a background you want to blur.

The Depth Blur neural filter in Photoshop

The Neural Filters dialog lives under the Filter menu.

The Depth Blur neural filter in Photoshop

Inside, you’ll see a list of Featured filters and a list of Beta filters. Beta filters are actively being tested by Adobe, which is why they need an active internet connection. Find Depth Blur in the Beta list and click it.

Setting the Focal Point

With Depth Blur toggled on, you get a set of settings for adjusting the effect and a live preview window showing what’s happening in the image.

The Depth Blur neural filter in Photoshop

The first thing to do is set the focal point, placing points to tell Photoshop what should stay in focus and what should be blurred. In the video, a single click on the subject is all it takes. Points on other objects at roughly the same distance from the camera can make the effect more realistic.

The Depth Blur neural filter in Photoshop

Blur Strength and Focal Range

Blur Strength and Focal Range are the two settings that recreate what adjusting a camera’s aperture would do.

The Depth Blur neural filter in Photoshop

Adjust them to taste. You may notice problem areas, like clothing, getting blurred along with the background. Since this is an automated tool, some issues are to be expected, and they’re straightforward to clean up with standard Photoshop techniques.

The Depth Blur neural filter in Photoshop

Once the effect is dialed in, output it to Duplicate Layer Masked, which is what makes the cleanup below possible.

Fixing Areas That Shouldn’t Be Blurred

Automated tools rarely yield a perfect result, and because the blur went onto a new layer, the original image is still sitting underneath to pull detail from.

The Depth Blur neural filter in Photoshop

Take the subject’s bandana, which should be in focus along with the rest of her. Since the blur is on its own layer, all that’s needed is to hide the blur from that area using its layer mask.

The Depth Blur neural filter in Photoshop

Click the blur layer’s mask, select the Brush Tool and set the color to black. With a soft round brush at a low Flow, paint over the bandana to hide the blur and reveal the original underneath. Zoom in and adjust the brush size as needed, and switch to white to paint the blur back in if you take away too much.

Removing Halos with the Brush Tool

Alongside blurring areas that shouldn’t be blurred, Photoshop can also leave a halo around those areas.

The Depth Blur neural filter in Photoshop

This part of the subject’s clothing was blurred by the filter, and even after fixing the main problem a visible halo remains.

The Depth Blur neural filter in Photoshop

The easiest fix is to paint over it. Create a new layer, select the Brush Tool, sample a color from just outside the halo, and paint over the halo until it disappears. If you over-paint, a layer mask hides the excess.

Adding Noise So the Blur Matches

With the problem areas fixed, one more step makes the whole effect photorealistic.

The Depth Blur neural filter in Photoshop

Zoom in and compare the noise in the original image against the blurred areas, which have almost none. In a real photograph, the out-of-focus areas would carry the same amount of noise as the sharp ones.

The Depth Blur neural filter in Photoshop

Select the blur layer, open the Filter menu, choose Noise and then Add Noise. Lower the amount until it matches the noise already in the photograph.

The tool did require some manual work, but the overall effect looks excellent and still saved a great deal of time.

Why the Manual Cleanup Matters

Depth Blur guesses at depth from a single photograph, so it gets the broad separation right and the boundaries wrong, which is why a bandana ends up soft and a halo appears along a shoulder. Outputting to Duplicate Layer Masked is what turns those mistakes into cheap fixes, because the sharp original is still underneath and a black brush on the mask restores it. The noise pass closes the last gap: a synthetic blur is cleaner than the photograph around it, and matching the grain is what stops the eye noticing.

Final Thoughts

To blur a background automatically in Photoshop, open Filter and then Neural Filters, turn on Depth Blur from the Beta list, click a focal point on your subject, then dial in Blur Strength and Focal Range. Output to Duplicate Layer Masked, paint black on the mask to recover anything that shouldn’t be soft, paint out any halos on a new layer, and finish with Add Noise so the blurred areas carry the same grain as the rest of the frame.

Quick Reference: Keys, Menus and Settings

  • Open the filterFilter > Neural Filters > Depth Blur (Beta list)
  • Focal pointClick the subject in the focal point image; the preview icon at the bottom left shows before and after
  • Set the blurBlur Strength for how blurry, Focal Range for how much stays sharp
  • OutputOutput: Duplicate Layer Masked, then OK
  • Unblur the subjectClick the mask, B, paint black; white puts the blur back
  • Paint out halosNew layer, B, Alt/Option-click to sample nearby color, paint to the edge
  • Match the grainFilter > Noise > Add Noise on the blur layer, low amount (about 3% here)
Page 1 of the free Automatically Blur Backgrounds in Photoshop PDF guide

Free Downloads

Follow Along on the Same Photo

Get the portrait of the woman in the yellow bandana, the sample PSD and the 2-page PDF guide to the filter and the cleanup. Free with a PHLEARN account.

Depth Blur Neural Filter: Common Questions

Where is the Depth Blur filter in Photoshop?

Go to Filter > Neural Filters and switch on Depth Blur in the Beta list. When this was recorded in July 2021 it was a brand new beta filter, so you need the latest Photoshop.

Why does Depth Blur need an internet connection?

The image data is processed in the cloud and sent back to your computer, so stay online while you use it.

How do I tell Depth Blur what to keep sharp?

Click on your subject in the small focal point image in the dialog. One click is what the video shows; points on other objects at the same distance from the camera can make it more realistic.

What do Blur Strength and Focal Range do?

Blur Strength makes the background more blurry. Focal Range sets how much of the image stays in focus: raise it and more is sharp. Together they stand in for changing the aperture.

Which output option should I use?

Duplicate Layer Masked. It puts the blur on its own layer with a layer mask above the untouched original, so you can decide afterward what is blurred and what is not.

The filter blurred part of my subject. How do I fix it?

Click the blur layer’s mask, press B and paint black over anything that should be sharp, like the bandana and overalls here. Paint white to bring the blur back. A soft round brush at a low Flow works well.

How do I get rid of the halo around my subject?

Create a new layer, press B, Alt/Option-click to sample the background just outside the halo and paint up to the subject’s edge. If paint spills onto the subject, add a layer mask and paint black there.

Why does the blurred background look fake?

The blur has almost no noise, so it does not match the rest of the photo. Select the blur layer and go to Filter > Noise > Add Noise with a low amount; Aaron uses about 3% here.

Should I use the Haze, Warmth, Brightness and Saturation sliders?

Aaron finds them less helpful than the blur itself. You can always add those effects later.

Are the sample files free?

Yes, with a free PHLEARN account. You get 1 sample image, 1 sample PSD and 1 PDF guide: the portrait in the yellow bandana, the PSD and a 2-page guide.

Master Photoshop, Lightroom and Photography

Join PHLEARN PRO for $12.99 a month, or $99.99 a year (save 36%). Cancel anytime, with a 30-day money-back guarantee.

As featured in
  • 500px
  • Adobe
  • Fstoppers
  • HuffPost
  • Inc.
  • PetaPixel