In the post about Subject Masking in Bird photography, I mentioned that I used a technique in Photoshop to blur a background while preserving the detail in the subject. I’ve used it once more and so decided to write a quick tutorial about it.
Here’s the shot as it came from Lightroom and Topaz Sharpen AI –
And here’s how it looked after I was done in Photoshop –
Isn’t that cool?
In this case the technique gives the appearance of having taken the shot with a wider aperture by using Tilt-shift blur in the blur gallery, but you could substitute other blurs depending on your needs. Here are the steps you’ll need to take –
- Duplicate background layer and rename to foreground or subject or something so you will be able to identify this layer in the stack
- On the background layer, select your subject using any selection tool you prefer
- Expand that selection by 5 or so pixels by going to the Menu bar – Select-Modify-Expand
- You should have a gap between the exact edge to the marching ants, this will be useful for blending and reducing halos
- Remove object with Content Aware Fill (Edit menu)
- Only the edges of the fill job really counts here, if the center is weird, don’t worry because you’re going to be putting the object back in its place later
- Output to a Duplicate Layer (Background copy)
- Enable foreground layer and disable two background layers
- Your selection should still be active
- Apply foreground layer to the background layer by clicking the layer mask button
- With layer mask selected go to the Menu bar Filter-Other-Minimum (you can reactivate the other layers now – if you leave them off, you will have a blank pixel layer with the object floating in it)
- Contract the mask by the # of pixels you used to expand your selection
- You can use whole or fractional pixels and sometimes contracting by .5 to 1 pixel will tighten even more to eliminate any halo effects
- Select background copy layer and convert to a Smart Object
- Go to Filter – Blur gallery and select Tilt-Shift Blur for the effect in this shot
- The tool has three main parts – the center to 2 solid lines – this is where everything will remain sharp, the solid lines to 2 dotted lines – this is where the blur will blend into the area beyond the dotted lines where the maximum blur will be placed.
- By placing these lines within the photo, you will preserve the crisp focus nearby to the subject, like the branches a bird sits on or the place where a person stands
- By adjusting the solid and dotted lines, you can expand or tighten the crisp focus and blending areas to the intense blur
- Because you have a mask only the background will be affected
- Because it’s a Smart Object you can open the Blur tool to adjust as needed
- Go to your layer mask and with white and black brushes, refine the mask
- White will paint more of the blur onto the photo, black more of the subject
- Use low opacity and fill for the really tight, tricky parts, higher opacity and fill for larger areas that don’t need precise feathering
- If you want to use the mask again in a new adjustment layer, create the layer and Alt click and drag the layer to copy it. Invert to adjust the background.
My layer stack looked like this –
Phew! I hope that was helpful. For fussy subject masking, the CAF works great and by first expanding your selection and then contracting your mask, you can eliminate awful halos around your selection. I remember fighting with a shot of an Eastern Kingbird this summer. It had a very busy background that I wanted to blur, but the masking was brutal and a giant PITA. This is much easier even though it involves a lot of steps. The result looks much more natural, too.
I’m going to experiment with this technique for moving objects within the photo. Probably best with simple backgrounds and subjects, but it’s an idea.