Extend the background of an image with AI in Photoshop

This tutorial presents a method for extending the background of an image using artificial intelligence (AI).

Catalog reference: Photoshop Tutorial_0022.

Identify the level of each chapter

🟢 All levels

  • Core concepts to master.
  • Recommended for all users.

🟡 Intermediate level

  • Requires mastery of the core concepts.
  • Commonly used techniques.

🔴 Expert level

  • Advanced techniques.
  • Used in specific or professional cases.

🟢 Prepare the original image

In the example below, you want to get a panoramic image from a standard photo.

Observe the original photo of a sunset over the sea

🟡 Extend the image with Generative Expand

Select the Crop Tool (marker 1). In the options bar of the tool, choose the Generative Expand option in the Fill drop-down list (marker 2).

Select the Crop Tool, then Generative Expand in the Fill list

In the Generative Expand toolbar, select the W x H x Resolution option.

Choose the W x H x Resolution option in the Generative Expand toolbar

With the handles of the crop tool, extend the surface of the image to the right and to the left (markers 1 and 2). Then click the Generative Expand button (marker 3).

Extend the image to the right and left with the crop handles

Click the Generate button (marker 2).

Click the Generate button of the contextual toolbar

The AI starts generating (marker 1) three proposals (marker 2).

Observe the ongoing generation of the three AI proposals

🟡 Compare the AI proposals

The illustration below shows the first proposal for extending the image to the right and to the left.

Observe proposal 1 extending to the right and to the left

The second proposal:

Observe proposal 2 for extending the image

The third proposal:

Observe proposal 3 for extending the image

Hide the background: the extensions created by the AI are then highlighted.

Hide the background to highlight the extensions created by the AI

🟡 Merge the layers

Select the two layers Background copy and Generative Expand.

Select the Background copy and Generative Expand layers in the Layers panel

Merge these two layers: right-click the layers, then choose the Merge Layers option [Windows shortcut: Ctrl + E] [Mac shortcut: Cmd + E].

Choose Merge Layers in the right-click menu

The illustration below shows the final image.

Observe the final panoramic image after merging the layers