When it comes to removing objects in your pictures, nothing (yet) beats the power of Adobe Photoshop CC. If you’ve got plenty of background pixels surrounding the thing you want to zap, you can quickly send it packin’ with the Fill command’s Content-Aware option. But what if you need to use another area of your photo for the fix instead of surrounding pixels? That’s where the Patch tool shines. In this column, you’ll learn how to use both options safely, without destroying your original image. (As of this writing, Photoshop Elements’ Fill command has a content-aware option, but it lacks a Patch tool.)
Removing objects with Content-Aware Fill
Open an image with a medium-to-large sized object to delete, like this light post. To ensure you’ve got plenty of background pixels for Photoshop to work with, do the pixel-zapping before cropping. If you’re working with a single-layered document, duplicate the layer by pressing Command-J. If you have multiple layers, activate the topmost layer and create a stamped copy of all visible layers by pressing Shift-Option-Command-E.
Now select the object you want to delete. If there’s a lot of free space around it, you can use the Rectangular Marquee or Lasso tool to draw a selection around the object. Since that’ll rarely be the case, let’s try the Quick Selection tool, which creates a selection based on the color of pixels you click or drag across. After grabbing the tool, trot up to the Options bar and turn on Auto Enhance for a slightly smoother and more accurate selection.
Mouse over to your image and drag atop the light post to select it. As you drag, Photoshop adds similarly colored pixels to the selection, though the quantity of pixels selected is directly proportionate to the size of the tool’s brush cursor. For this image, use a larger brush for the lights (30 pixels) and a smaller one for the pole (9 pixels). If you accidentally select too much of the background, Option-drag across those pixels to subtract them from your selection.
To ensure you’re not left with a ghostly outline of the object when you remove it, expand the selection to include some background pixels by choosing Select > Modify > Expand.
Choose Edit > Fill and in the resulting dialog box, choose Content Aware from the Contents menu. When you click OK, Photoshop fills the selection with surrounding pixels and blends them together. The voodoo used to fill your selection is random and changes each time you use the command. So, if you don’t like the results, try choosing Edit > Fill again. When you’re finished, press Command-D to deselect.
Removing objects with the Patch tool
If the object you want to delete isn’t surrounded by a slew of free background pixels, you can use the Patch tool to tell Photoshop to use an entirely different area of your photo for the removal.
Start by pressing Shift-Command-N to create a new empty layer onto which we’ll do the patching. In the resulting dialog box, name the new layer something meaningful and click OK. Grab the Patch tool (it’s in the healing toolset) and, in the Options bar, choose Content-Aware from the Patch menu and turn on Sample All Layers. Don’t worry about the Structure and Color fields yet.
Click and drag to freehand draw a loose selection around the person in the green shirt (let’s call this the target area). If necessary, expand the selection to include more background pixels, by choosing Select > Modify > Expand.
Next, click inside the selection and drag it to the area you want to use for the fix, like the left side of this image (let’s call this the source area). Photoshop shows you a preview of what the fix will look like as you drag. Release your mouse button and Photoshop performs the patch.
Before you get rid of the selection, use the Structure and Color fields to enter precise settings for more realistic blending. Use Structure to determine how much detail blending Photoshop performs in the target area from a lot (1) to not very much (7). The Color field lets you specify how much color blending occurs, from none (0) to tons (10). When you’re satisfied, press Command-D to deselect.
Repeat these steps to remove the other people in the background. Be sure to perform each removal on a new layer for maximum editing flexibility, and experiment with using areas on the left side of the image for the removal. If necessary, use the Clone Stamp, Spot Healing, or Healing brush for cleanup. Be sure to use those tools on new, empty layers, and turn on their Sample All Layers settings in the Options bar so they’ll function on empty layers.
As you can see, Photoshop did a remarkable job of removing the people from the background, creating a less distracting background. Until next time, may the creative force be with you all!