Photoshop Content-Aware Fill: improvements after the update

0
Photoshop Content-Aware Fill: improvements after the update

Tedious manual retouch to remove unwanted content is a thing of the past. The new Photoshop version CC 2019 provides a new Content-Aware Fill workspace. In this tutorial, you will learn how to use it to eliminated undesirable content from your photos.

Photoshop currently provides a wide range of easy-to-handle tools to quickly edit unwanted areas of a photo. One option is to use the Content-Aware Fill function to remove an unwanted object from a photo with just a few clicks.

The Content-Aware Fill tool in older Photoshop versions

A blue car with a white roof and colorful balloons attached to its side drives on a road next to sand. An editing menu from Photoshop appears over the image, showing fill options.

The Content-Aware Fill function in previous Photoshop versions was already popular with users as it often delivered surprisingly good results. Removing an object from a photo was possible with a few mouse clicks. First you had to select the object using the Selection tool, click Edit > Fill. The Content-Aware Fill tool then automatically removed a selected area and replaced it based on the pixels around that object.

In some cases, the tool did an amazing job and it was impossible to tell any difference to the original photo. In others, the results were not so great. The problem was that you couldn’t tell Photoshop which areas to sample or how to generate the fill. As a result, the selection was filled with image content that did not actually belong there. To avoid this problem, the Content-Aware Fill tool has been further enhanced in Photoshop CC 2019.

Aerial view of a desert road partially covered by sand dunes. The left side shows dark asphalt, while the right side displays rippled, orange sand encroaching over faded yellow road markings.

The advantages of the new workspace

The new Content-Aware Fill workspace is a useful addition to the existing function. Previously, when analysing the image, Photoshop always sampled the whole image for possible source image information. This is also the reason why artefacts occurred occasionally.
A top-down view of a blue convertible car with balloons, edited in Photoshop. The car is on a green road, with editing tools and a preview window visible on the right side of the screen.
The new Content-Aware Fill function enables you to define the areas which Photoshop should sample. Moreover, the areas to be used can be scaled, rotated or mirrored automatically for best results. If the result is still not ideal, you can further refine the selection using the Color Adaptation option. The new workspace features a clearly structured overview, showing the original image and a preview of the new image side by side.

Using content-aware filling in Photoshop CC 2019:

Step 1: Select the object and open the Content-Aware Fill workspace

A screenshot of Adobe Photoshop with the Edit menu open, highlighting the Content-Aware Fill option. The workspace shows a top-down photo of a blue car next to a dashed white road line.

In the example, we want to remove the vehicle in the street and generate a fill for the yellow road marking. First use the Lasso tool to draw a selection around the vehicle. Make sure to preserve as much as possible of the yellow road marking because this is the area you want to use for the fill later on, giving Photoshop more image data to work with. Once you have made your selection, click Edit > Content-Aware Fill. The new workspace opens, showing the original photo in the left window and the edited preview in the right window.

Step 2: Excluding source areas from sampling

A photo editing program shows an aerial view of a car with balloons on a split road—green grass on one side, sandy ground on the other. Editing panels and adjustment sliders are visible on the right.

A green overlay covers the areas not included in your selection. Photoshop uses this area to sample pixels to generate the fill. To further enhance the street, you can remove the beach from the source. To do so, move the mouse over the section of beach, and holding down the left mouse button, draw over the area you want to remove. This works similar to the Eraser tool. Once you release the left mouse button, you will see the newly generated photo in the preview window.

Each time you change the original photo, it will be resampled based on the available image information. If you have accidentally removed too much content, press the Alt key, and holding down the left mouse button , move over the area you want to restore as a possible source area.

A photo editing software interface showing a sandy desert and road image; the Output Settings dropdown menu is open, highlighting Duplicate Layer as the selected option on the right panel.

Before clicking OK to confirm the workspace settings, you can choose between different output settings. You can output

  • the edited area,
  • the edited original photo or
  • the original photo together with the edited area as a new layer.

Step 3: Fill the yellow road marking

A computer screen displays photo editing software with an aerial image of a road dividing green fields and sandy desert. Editing tools and adjustment panels are visible on the right side of the interface.

The yellow road marking is missing in the area previously occupied by the car. You can now apply Photoshop’s Content-Aware Fill function to complete the image information of the road marking.

First choose the Selection tool and drag out a selection from the place where the road marking is intact. Make sure that the selection is as wide as the yellow road marking and leave a bit of marking at the top unselected. You can draw the selection down to the edge of the photo. Subsequently, click Edit > Content-Aware Fill again. You want Photoshop to use only the remaining strip of road marking at the top as a source. So remove all other areas that might be included as source data.

Additionally, hold down the Shift key to create a straight line.

Aerial view of a straight road dividing a sandy desert with ripples on one side and dark terrain on the other, with a green section marking the road’s beginning.

Once only the yellow road marking is left as source area, a preview of the complemented yellow road marking is displayed. But the result is not yet ideal. Change the Fill Settings to rotate, scale or flip content or adapt the colours for a better match.

Just try out different methods to yield the best result. In this case, we get the best outcome through a combination of scaling and mirroring content.

A screenshot of an image editing software showing a close-up of a road with a yellow center line, alongside tool options for content-aware fill on the right side of the screen.

Credits: Tutorial and design by media designer, Christoph Ullrich.