How to use Content-Aware Fill in Photoshop CC 2019
Content-Aware Fill is now bigger and better than ever in Photoshop CC 2019, with powerful new features that let you remove objects or repair images like never before!
Content-Aware Fill was designed to make removing unwanted objects or distracting elements from your photos as easy as possible. Simply by drawing a selection around an area, Photoshop can instantly replace it with new image detail from the surrounding areas.
Adobe first added Content-Aware Fill back in Photoshop CS5 as a new option in the Fill dialog box. But now in Photoshop CC 2019, Content-Aware Fill gets its own separate workspace (or "taskspace" as Adobe calls it). The taskspace adds powerful new features, and gives us much more control over which "good" parts of the image are used to replace the unwanted areas. We can now resize our initial selection, rotate, scale and mirror content, preview the results, and more! And it's now easier than ever to work with Content-Aware Fill non-destructively.
In this tutorial, I'll walk you through every new feature of Content-Aware Fill and show you step-by-step how to get great results. To follow along, you'll need Photoshop CC 2019. If you're already a Creative Cloud subscriber, make sure your copy of Photoshop CC is up to date. Let's get started!
How to use Content-Aware Fill
The Content-Aware Fill taskspace in Photoshop CC 2019 includes several new features designed to improve your results when removing unwanted objects from your photos. But not all of these new features are useful in every situation. So to learn how things work, we'll look at a few different examples.
Here's a quick summary of the steps to using Content-Aware Fill:
- Step 1: Draw a selection around the object or area you want to replace
- Step 2: Open the new Content-Aware Fill taskspace (Edit > Content-Aware Fill)
- Step 3: Resize the sampling area with the Sampling Brush Tool
- Step 4: Resize your initial selection with the Lasso Tool
- Step 5: Use the Fill Settings to improve the results even further
- Step 6: Output your results as a new layer
Let's start with the basics and cover the steps you'll use all the time. In this image, I want to remove the woman in the center (the one wearing the red top):
Draw a selection around the unwanted object
Start by drawing a selection around the object (or person) you want to remove. I'll grab the Lasso Tool from the Toolbar:
Then I'll draw a rough selection outline around the woman in the center. For best results, stay close to the person, but also keep a bit of space around them so Photoshop has something to work with:
Open Content-Aware Fill
With the selection in place, go up to the Edit menu in the Menu Bar and choose the new Content-Aware Fill command. Note that in Photoshop CC 2019, you can still select Content-Aware from the Fill dialog box. But you won't have access to the new taskspace or its features:
The new Content-Aware Fill taskspace
This opens the new Content-Aware Fill taskspace. Let's take a quick tour:
The tools and Toolbar
Along the left of the taskspace is the Toolbar, with four tools to choose from (plus a hidden one that we'll look at in a moment):
The Sampling Brush Tool
The first tool at the top is the Sampling Brush Tool, used to control which parts of the image that Photoshop can sample from when choosing content to fill in the selected area:
The Lasso Tools
Below the Sampling Brush Tool is the Lasso Tool. And if you click and hold on the Lasso Tool, you'll find the Polygonal Lasso Tool hiding behind it, bringing the total number of tools in the toolbar to five. These tools are used to refine the initial selection we made around the unwanted object. We can add to the initial selection, or we can subtract areas from it:
The Hand Tool and Zoom Tool
The Options Bar
Above the Toolbar is the Options Bar, where we select various options for whichever tool is currently active:
The Work Area and Preview Panel
In the center of the Content-Aware Fill taskspace is the work area (on the left) and the Preview panel (on the right). The work area is where we can adjust the size of the sampling area (where Photoshop is looking for replacement content, indicated in green), as well as the selection around the object. And the Preview panel is where we preview the results after we make changes:
The Content-Aware Fill panel
And along the right, we have the Content-Aware Fill panel, with Sampling Area Options, Fill Settings and Output Settings:
Sampling Area Options
The Sampling Area options control the appearance of the sampling area overlay in the work area:
- Click the color swatch to change the color of the overlay. The default color is green.
- Drag the Opacity slider to adjust the transparency of the overlay. The default opacity is 50%.
- Toggle the overlay on and off with the Show Sampling Area checkbox at the top.
- Use the Indicates option to change whether the overlay indicates the sampling area (default) or the excluded area.
The Fill Settings are powerful options that, depending on your image, can greatly improve the Content-Aware Fill results. We'll look more closely at these options later, but here's a quick summary:
- Color Adaptation can adjust the brightness and contrast of the filled area to better match its surroundings. This can be very useful when removing objects in areas with gradual color or brightness transitions.
- Rotation Adaptation allows Photoshop to rotate the content to better match the angle and direction. Great for curved or rotated patterns.
- Scale lets Photoshop adjust the size of the content when removing objects in perspective.
- And Mirror will flip the contents horizontally, perfect for symmetrical images or patterns.
And finally, we have the Output Settings which make it easy to use Content-Aware Fill non-destructively:
- New Layer (the default setting) will output just the filled area itself to its own layer.
- Duplicate Layer will place a duplicate version of the entire image onto a new layer.
- And Current Layer will output the result onto the same layer you're working on. This results in a destructive edit and is not recommended.
Resizing the sampling area with the Sampling Brush Tool
If we look in the Preview panel, we see that my initial result with Content-Aware Fill is not great. Photoshop is using pixels from the woman on the left to fill in the area I selected in the center:
Viewing the sampling area
In the work area, we see the problem. Other than my selection in the center, the entire image is covered by a green overlay. The overlay represents the sampling area where Photoshop is looking for replacement content. In this case, it's looking everywhere, which is not what we want:
Changing the color of the overlay
If you need to change the color of the overlay to something other than green, go to the Sampling Options in the Content-Aware Fill panel on the right. Click on the color swatch, and then choose a different color from the Color Picker:
How to edit the sampling area
To improve the results with Content-Aware Fill, we can use the Sampling Brush Tool to edit the sampling area and remove parts of the image where we don't want Photoshop to look for replacement content. Select the Sampling Brush Tool from the top of the Toolbar on the left:
Then, simply paint over the areas you want to remove. I'll paint over the woman on the left to remove her from the overlay:
Changing your brush size
To change your brush size from the keyboard, use the left and right bracket keys ( [ and ] ). The left bracket key makes the brush smaller and the right bracket key makes it larger.
You can also adjust your brush size using the Size option in the Options Bar:
Zooming and panning the image
To zoom in on your image, press and hold Ctrl+spacebar (Win) / Command+spacebar (Mac) to temporarily access the Zoom Tool, then click where you want to zoom in. And to zoom out, hold Alt+spacebar (Win) / Option+spacebar (Mac) and click.
To pan and scroll the image, press and hold the spacebar by itself, and then click and drag the image to reposition it.
Viewing the results in the Preview panel
Let's check the results in the Preview panel. Since I've removed the woman on the left from the sampling area, Photoshop is no longer using her to fill in my selection, which is good. But now we have a new problem. Photoshop has switched over to the woman on the right, leaving me with a floating head in the center of the image:
Removing more of the sampling area
So with the Sampling Brush Tool still selected, I'll paint over the woman on the right to remove her from the sampling area as well:
And while I'm at it, I'll also paint over the wooden posts on the left and right of the image, since I don't want Photoshop including those areas either:
How to add to the sampling area with the Sampling Brush Tool
By default, the Sampling Brush Tool will remove any parts of the image you paint over from the sampling area. To add to the sampling area, press and hold the Alt (Win) / Option (Mac) key on your keyboard. The minus sign (-) in the center of the brush cursor will change to a plus sign (+). Paint over the areas you want to add, and then release the Alt / Option key.
You can also switch between Add and Remove mode from the Options Bar. But since you'll spend most of your time removing areas from the overlay, the keyboard shortcut is faster:
The progress indicators in the Preview panel
After you make a change in the work area, it can take some time for the Preview panel to fully update. While you're waiting, you'll see two progress icons in the lower right corner of the Preview panel.
The first icon that appears (little circles rotating around the center) means that Photoshop is working on your changes. And after a few moments, a warning icon will appear beside it. The warning icon means that you're currently seeing a low resolution preview, and Photoshop is still working on the high resolution version. Both icons disappear when the high resolution version is displayed:
Previewing the results
The Preview panel shows that things are definitely improving. But again, we have another new problem. Photoshop has replaced part of the grass in the center with some of the plants and trees in the background. The trick to solving problems like this is to scan the image looking for the spot where the unwanted pixels are coming from. In this case, they're from an area just to the left of the woman on the right:
I'll paint over that section to remove it from the sampling area:
And now, the Preview panel shows a much better result. It's still not perfect, but it's greatly improved from our initial result, and light years ahead of what Content-Aware Fill was capable of in the past:
Resizing the initial selection with the Lasso Tools
Along with adjusting the size of the sampling area, the new Content-Aware Fill taskspace also lets us resize our initial selection around the object using either of the Lasso Tools (the standard Lasso Tool or the Polygonal Lasso Tool nested behind it). I'll select the standard Lasso Tool from the Toolbar:
The selection modes (New, Add, Remove, Intersect)
By default, Photoshop will add areas to the current selection. To remove part of the selection, press and hold Alt (Win) / Option (Mac) as you drag with the tool. You can also switch between modes (New selection, Add to selection, Remove from selection, and Intersect with selection) in the Options Bar:
Adding to the initial selection
In the work area, I'll draw a selection around that patch of rough grass and dirt near the bottom to add it to the area that Photoshop will replace:
And in the Preview panel, we see that Photoshop did a pretty good job of replacing that area with new content. Again, it's not perfect. There's a little smudge on the right next to the woman's foot, along with some repeating patterns. I could remove those repeating sections from the sampling area using the Sampling Brush Tool. Or, I could just leave them for now and remove them later with the Clone Stamp Tool:
How to undo and redo steps with Content-Aware Fill
Photoshop gives us multiple undos in the Content-Aware Fill taskspace. So if you don't like the result after making a change, you can easily undo it.
- Press Ctrl+Z (Win) / Command+Z (Mac) to move backwards through your history, one step at a time.
- Press Shift+Ctrl+Z (Win) / Shift+Command+Z (Mac) to redo steps.
You can also undo and redo steps from the Edit menu:
I'll undo my last step, and now the image is back to the way it looked before:
The Fill Settings in the Content-Aware Fill panel
We've seen that the Sampling Brush Tool on its own can greatly improve the initial Content-Aware Fill result. But it doesn't end there. Depending on your image, you can dramatically improve things even further using the Fill Settings (Color Adaptation, Rotation Adaptation, Scale, and Mirror) in the Content-Aware Fill panel. Let's look at a few examples to see how these options work:
The first option, Color Adaptation, lets Photoshop adjust the brightness and contrast of the filled area to better match its surroundings. This can be very useful when replacing an object in an area with subtle color and brightness transitions. Color Adaptation is turned on by default and set to, well, Default. But there are three other settings (High, Very High, and None) to choose from as well:
In this image, I want to remove the windmill and leave only the sunrise in the background. I'll go ahead and draw a selection outline around the windmill:
Then I'll open the Content-Aware Fill taskspace by going up to the Edit menu and choosing Content-Aware Fill:
Color Adaptation results comparison
And here's a comparison of the results I get using different Color Adaptation settings. On the left is the result with Color Adaptation set to None, where we can clearly see the problem. The filled area looks very harsh against the subtle gradients of the sunrise.
In the center is the Default setting. Here things look much better, but we can still see blotches just above the horizon.
And on the right is the much smoother result with Color Adaptation set to Very High. The result you'll get from Color Adaptation will depend on the amount of detail in your image. For areas of very high detail, the Default or None settings tend to work best. For smoother areas, try High or Very High:
The second option in the Fill Settings is Rotation Adaptation. This lets Photoshop rotate the contents in the filled area, useful when removing an object from an area with curved or rotating patterns. Rotation Adaptation is set to None by default, but you can choose Low, Medium, High, or Full:
In this image, I want to remove the ladybug from the flower. But with the flower rotating around its center, it might be a challenge. I'll select the ladybug, and then I'll open the image in the Content-Aware Fill taskspace:
Rotation Adaptation results comparison
With Rotation Adaptation set to None (left), the result looks terrible. Part of the flower's center is now sticking out to the side. But with Rotation Adaptation set to High (right), Photoshop was able to rotate the textures to match the rotation of the flower:
The third option in the Fill Settings is Scale, which lets Photoshop resize the content in the filled area to better match the perspective of the surrounding textures. Scale can be useful when replacing objects in images that were shot on an angle. By default, Scale is turned off:
In this image, I want to remove the reflective signboard in the center of the brick wall:
Scale results comparison
With Scale turned off (left), the result again looks terrible. Photoshop just filled the selection with random parts of the wall. But with Scale turned on (right), the textures are resized to better align them with the perspective. It's not perfect, but it does give me a much better starting point:
And finally, the Mirror option can flip textures horizontally from one side of the image to the other. Mirror is great for removing or repairing objects that are part of a symmetrical pattern. By default, Mirror is turned off:
In this final image, I want to repair the missing left corner of the butterfly's wing. I'll draw a selection outline around the general area where the missing part should be, and then I'll open the image in the Content-Aware Fill taskspace:
Mirror results comparison
With Mirror turned off (left), all Photoshop can do is copy and paste a section of the wing into the missing area. But with Mirror turned on (right), almost like magic, Photoshop was able to take the corner of the wing from the right side of the butterfly and flip it onto the left side. Since the butterfly is rotated on an angle, I also set Rotation Adaptation (which we looked at earlier) to Full, resulting in a near perfect repair:
The Output Settings
When you're done editing the image, use the Output Settings in the Content-Aware Fill panel to output your final result back into the document. The default setting, New Layer, will output just the filled area itself onto a new layer above the image. And Duplicate Layer will output a copy of the entire image, including the edits you made, onto a new layer. Either of these options is a good choice, since they both allow you to work non-destructively.
The third option, Current Layer, will replace your original image with the edited version, resulting in a destructive edit. Avoid this option whenever possible:
To accept your edits and close the Content-Aware Fill taskspace, click OK. Or click Cancel to close the taskspace without saving your changes:
And there we have it! That's how to remove objects or repair parts of your image using Content-Aware Fill in Photoshop CC 2019! Check out our Photoshop Basics section for more tutorials! And don' forget, all of our tutorials are now available to download as PDFs!
Subscribe to our newsletter
Be the first the know when new tutorials are added!