How to use Generative Fill in Photoshop to extend an image

Generative Fill in Photoshop: How to Extend an Image

Learn how to use Generative Fill in Photoshop to magically extend your image, transforming a portrait shot into an amazing landscape photo using the unbelievable power of generative AI. The future of image editing is here!

Written by Steve Patterson.

Generative AI in Photoshop is here thanks to a mind-blowing new feature called Generative Fill. And with it comes a whole new way of using Photoshop. Things that would have taken forever for even the most highly skilled Photoshop user can now be done by anyone in just a few minutes. Generative Fill turns Photoshop into a playground for your imagination, and the world of image editing is now open to everyone.

In this tutorial, I’ll show you how to use Generative Fill, powered by Adobe’s generative AI named Firefly, to magically extend an image and turn a portrait shot into a landscape photo right before your eyes.

As we’ll see, Photoshop fills the extended area with original AI-generated content that matches the lighting, the shadows, the perspective and even the depth of field of the original photo. You need to see it to believe it.

Which version of Photoshop do I need to use Generative Fill?

As of Photoshop 2024, Generative Fill is out of beta and now available in the official Photoshop release.

If you have an active Creative Cloud subscription, use the Creative Cloud Desktop app to make sure that your copy of Photoshop is up to date.

Let's get started!

Download all of our Photoshop tutorials as PDFs!

How to extend an image with Generative Fill

Here’s how to use Generative Fill in Photoshop to extend an image. I’ll start by showing you how to extend one side of an image, and then once we’ve covered the basics, we’ll look at how to extend both sides at the same time.

I’ll also show you how to clean up minor problems with the AI-generated content using Photoshop’s new Remove Tool which is another AI-powered feature.

You can follow along with your own image. I’ll use this image from Adobe Stock.

The first photo.
The first image.

See Also:

Step 1: Select the Crop Tool

First we need to extend the canvas, so select the Crop Tool from the toolbar.

Selecting the Crop Tool in Photoshop
Selecting the Crop Tool.

In the Options Bar, make sure the aspect ratio is set to Ratio and that the Width and Height boxes next to it are both empty.

The aspect ratio options for the Crop Tool.
The Crop Tool’s aspect ratio options.

Video: How to extend an image with Generative Fill

Step 2: Extend the left or right side of the canvas

Click on the crop border’s left or right side handle and drag it out to extend the canvas.

With my image, I want to add more space on the left (the direction the woman is facing). So I’ll drag the left side crop handle outward.

Dragging the left crop handle away from the image.
Dragging the left crop handle away from the image.

Release your mouse button and Photoshop fills the extra canvas with your Background color, which by default is white.

Press Enter (Return on a Mac) on your keyboard to accept it.

The added canvas is filled with white.
The added canvas is filled with white.

Step 3: Select the Rectangular Marquee Tool

Next we need to select the area we just added. So grab the Rectangular Marquee Tool from the toolbar.

Selecting the Rectangular Marquee Tool.
Selecting the Rectangular Marquee Tool.

Step 4: Drag a selection around the extended canvas

Then drag a selection outline around the new part of the canvas.

Drawing a selection outline around the new canvas area.
Drawing a selection outline around the new canvas area.

Make sure your selection outline overlaps a bit of the image as well so the AI-generated content can blend seamlessly with the original detail.

The selection outline should overlap the side of the image.
The selection outline should overlap the side of the image.

Step 5: Click Generative Fill in the Contextual Task Bar

Directly below your selection outline is Photoshop’s new Contextual Task Bar.

The new Contextual Task Bar.
The new Contextual Task Bar.

If you don’t see it, go up to the Window menu in the Menu Bar and make sure that Contextual Task Bar has a check mark next to it.

The Contextual Task Bar can be turned on from the Window menu.
The Contextual Task Bar can be turned on from the Window menu.

Then in the Contextual Task Bar, click the Generative Fill button.

Clicking Generative Fill in the Task Bar.
Clicking Generative Fill in the Task Bar.

Step 6: Click Generate

A prompt box appears where you can enter text to describe what you want to fill the selected area with.

But when you just want to extend the edge of your image, leave the prompt box empty so Photoshop knows to fill the area with content that matches the original photo.

Then click the Generate button.

Leave the prompt box empty and click Generate.
Leave the prompt box empty and click Generate.

Photoshop sends the file over the internet to Adobe’s AI servers where the magic happens, and a progress bar appears showing how much longer you’ll need to wait.

In my experience, generating the AI content usually takes around 10-15 seconds which is a small price to pay for what you’re about to see.

The progress bar.
The progress bar.

The area is filled with AI-generated content

When it’s done, the extended canvas is instantly filled with new and original AI-generated content. And in my 20 years of using Photoshop, I’ve never seen anything like this.

With my image, Generative Fill extended the side of the building to perfectly match the perspective and depth of field of the original photo. It also extended the woman’s shadow, as well as the light shining on the ground in front of her, to maintain the same light source and direction.

Generative Fill even added subtle reflections in the dark pane of glass in front of her.

The initial Generative Fill result.
The initial Generative Fill result.

Do More with Generative Fill: Add Amazing Water Reflections in Seconds!

Photoshop’s new Generative layer

In the Layers panel, a new kind of layer called a Generative layer appears above the image. Notice the new Generative layer icon in the lower right of the thumbnail.

Also notice that the Generative layer includes a layer mask so that the AI-generated content appears only within the area we selected.

A Generative layer is added above the image.
A Generative layer is added above the image.

Step 7: Choose from three variations

In the Properties panel, you’ll find three variations of the AI-generated content to choose from. Click the thumbnails to switch between them and choose the one you like best.

I’ll try the second of the three variations.

The three variations in the Properties panel.
The three variations in the Properties panel.

This gives me a different result. This second one is okay, but I think the column on the far left is too dark. I like the first result better.

The second variation.
The second variation. Not quite as good as the first.

You can also cycle between variations using the left and right arrows in the Contextual Task Bar.

I’ll click the right-pointing arrow to switch to the third variation.

Using the arrows to cycle through the results.
Using the arrows to cycle through the results.

But this third one is my least favorite of the three. The side of the building looks like it needs a wash. I still like the original result the best.

The third variation.
The third variation.

Step 8: Click Generate again for three more results (optional)

If you don’t like any of the initial three results, click Generate again in the Properties panel to generate three more.

Generating three more variations.
Generating three more variations.

You’ll see another progress bar, and then three new variations will appear above the previous ones. You can generate as many results as you like without losing the ones you had.

Then click on each new variation to try it out.

Three new variations to try.
Three new variations to try.

With generative AI, you never really know what you’re going to get.

Some results will look weird, like this fourth one. It doesn’t match the rest of the building at all. But that’s okay, we’ll just try another one.

Not quite the content  I was hoping for.
Not quite the content I was hoping for.

This fifth result is much better. The only thing I don’t like is the distracting blue reflection in the bottom of the glass. Otherwise, good effort.

Almost perfect, but that blue reflection ruins in.
Almost perfect, but that blue reflection ruins in.

I’ll click Generate one more time in the Properties panel to see if I can get something even better.

Generating three more variations.
Generating three more variations.

This gives me three more variations, so I’ll try the first of the three.

Trying the 7th variation.
Trying lucky number 7.

And this time we have a winner! This result looks the best.

There's a couple of distractions though, so I’ll show you how to quickly remove them using the Remove Tool next.

The best of the Generative Fill results.
The best of the Generative Fill results.

Download all of our Photoshop tutorials as PDFs!

Use Photoshop’s Remove Tool to clean up problems

If the AI-generated content looks great overall but you notice a few distractions, you don’t need to keep clicking Generate hoping for a perfect result. Instead, use Photoshop’s Remove Tool, another new AI-powered feature, to easily clean them up. Here’s how it works.

Step 1: Add a new layer above the Generative layer

Since we can’t edit the Generative layer directly, we need to clean up the distractions on a separate layer. So click the Add New Layer icon at the bottom of the Layers panel.

Clicking the Add New Layer icon.
Clicking the Add New Layer icon.

A new blank layer appears above the Generative layer.

The new layer is added.
The new layer is added.

Step 2: Select the Remove Tool

The Remove Tool is found in the toolbar nested in with the Spot Healing Brush and Photoshop’s other healing tools.

Click and hold on whichever healing tool is visible and select the Remove Tool from the fly-out menu.

Selecting the Remove Tool.
Selecting the Remove Tool.

Step 3: Select Sample all layers and Remove after each stroke

In the Options Bar, make sure Sample all layers and Remove after each stroke are both checked.

The Remove Tool options in the Options Bar.
The Remove Tool options in the Options Bar.

Step 4: Paint over distractions to remove them

Use the left and right bracket keys on your keyboard to resize the Remove Tool’s brush. Then simply paint over any distracting elements to remove them.

For example, Generative Fill added a small artifact at the bottom of the glass. So I’ll paint over it with the Remove Tool. Photoshop highlights the spot where we painted in magenta.

Painting over an artifact with the Remove Tool.
Painting over an artifact with the Remove Tool.

Release your mouse button to remove the distraction, and it’s gone. The Remove Tool replaces it with AI-generated content.

The artifact is replaced with new content.
The artifact is replaced with new content.

I’ll also paint over a distracting brown spot on the ground.

Cleaning up a distracting area on the ground.
Cleaning up a distracting area on the ground.

And again the Remove Tool replaces it with new content.

Photoshop’s Remove Tool is the perfect companion to Generative Fill and you can learn much more about it in my separate Remove Tool tutorial.

The spot disappears after painting with the Remove Tool in Photoshop.
The spot disappears.

Summary: Using Generative Fill to extend an image

And that, believe it or not, is how easy it is to extend an image using Generative Fill in Photoshop.

  • Extend the canvas using the Crop Tool.
  • Drag a selection around the area with the Rectangular Marquee Tool.
  • Click Generative Fill, then Generate.
  • Let Adobe’s generative AI do all the work.
  • Pick the variation you like. Click Generate again if needed.
  • Clean up any distractions with the Remove Tool, and you’re done.

How to extend both sides of an image

But what if you want to use Photoshop’s Generative Fill to extend both sides of an image at the same time? There’s a couple of ways to do it. The first way is faster but the second gives you more flexibility. Let’s start with the faster way.

I’ll switch to my second image from Adobe Stock.

The second image.
The second image.

Extending both sides of the canvas at once

Start by selecting the Crop Tool in the toolbar just like we did before.

Selecting the Crop Tool.
Selecting the Crop Tool.

Then to extend both sides of the canvas at once, hold the Alt key (the Option key on a Mac) on your keyboard and drag out one side of the crop border.

The other side extends outward at the same time, adding an equal amount of space on both sides.

Press Enter (Return on a Mac) to accept it.

Holding Alt / Option to extend both sides of the canvas together.
Holding Alt / Option to extend both sides of the canvas together.

Selecting each side of the canvas

Grab the Rectangular Marquee Tool from the toolbar, again like we did before.

Selecting the Rectangular Marquee Tool.
Selecting the Rectangular Marquee Tool.

Then drag out a selection outline around the canvas on the left of the image. Make sure to include some of the image itself in the selection.

Selecting the left canvas area.
Selecting the left canvas area.

Then to add the right side of the canvas to the selection, hold Shift on your keyboard and drag a selection outline around it. Again make sure to include some of the image in the selection. A little is all you need.

Both sides are now selected.

Holding Shift to add the right side.
Holding Shift to add the right side.

Generating content for both sides at the same time

At this point, the steps are the same as what we learned earlier.

  • In the Contextual Task Bar, click the Generative Fill button.
  • Leave the prompt box empty and click the Generate button.

When the progress bar disappears, Photoshop fills both sides with new AI-generated content.

And wow, look at that result. Not only does the new content match the original photo perfectly, but Generative Fill even kept the shallow depth of field so that the background and the immediate foreground are nicely blurred.

The result after extending both sides of the image at once.
The result after extending both sides of the image at once.

In the Layers panel, we see the new Generative layer above the original photo.

The Generative layer that holds the AI content.
The Generative layer that holds the AI content.

And in the Properties panel, we have three variations to choose from. Or you can click Generate to create three more. But I like the first result the best.

And that’s the fastest way to extend both sides of your image using Generative Fill in Photoshop.

The Generative layer that holds the AI content.
The three variations in the Properties panel.

Using a separate Generative layer for each side

But instead of using a single Generative layer for both sides, it’s better to generate the content for each side separately. That way, if you like the result on one side but not the other, you can keep the side you like and try again on the side you don’t.

Also, you can use prompts (which we’ll do in a moment) to create unique content for each side. Let me quickly show you what I mean.

For this third and final image, I’ve gone ahead and extended the canvas on both sides using the Crop Tool.

The third image with the canvas already extended.
The third image with the canvas already extended.

So I’ll use the Rectangular Marquee Tool to draw a selection outline around the left side.

Selecting the left side of the canvas.
Selecting the left side of the canvas.

Then instead of adding the right side to the selection like I did with the previous image, I’ll click Generative Fill in the Contextual Task Bar, and then Generate.

Photoshop fills the left side with AI-generated content which looks great.

The left side of the canvas is filled with new content.
The left side of the canvas is filled with new content.

So now I’ll draw a selection around the right side of the canvas.

Selecting the right side.
Selecting the right side.

Then I’ll click Generative Fill in the Task Bar, and then Generate to fill the right side with new content.

What an amazing result. No one would guess that this is not the original photo.

Both sides are now filled with new content.
Both sides are now filled with new content.

Changing the content on each side separately

In the Layers panel, notice that I now have not one but two Generative layers. The top layer is the one I just added that holds the AI-generated content for the right side of the image, and the layer below it is for the left side.

This means I can now go back and change the content for each side independently.

Each side of the image has its own Generative layer.
Each side of the image has its own Generative layer.

For example, I’ll select the Generative layer for the left side of the image.

Selecting the left side’s Generative layer.
Selecting the left side’s Generative layer.

Using prompts to generate specific content

Then in the Properties panel, I could simply click Generate again to get three more variations that will match the original photo.

Or I can enter a description of something specific into the prompt box.

I’ll enter storm clouds as my prompt, and then I’ll click Generate.

Short and simple prompts tend to work best with Generative Fill.
Short and simple prompts tend to work best with Generative Fill.

And just like that, Photoshop adds an approaching storm on the left side of the image, while the right side remains unchanged.

Notice how even the angle of the sunlight hitting the clouds matches with the original photo.

The result after generating new content for the left side.
The result after generating new content for the left side.

Then I’ll select the Generative layer for the right side of the image.

Selecting the right side’s Generative layer.
Selecting the right side’s Generative layer.

And in the Properties panel, I’ll enter a different prompt for the right side. I’ll try for something mysterious, like island shrouded in fog. Then I’ll click Generate.

Entering a different prompt for the right side.
Entering a different prompt for the right side.

This time I had to click Generate a few times before getting a result I liked, but Generative Fill did finally give me exactly what I was looking for.

The final result after extending each side with Generative Fill.
The final result after extending each side with Generative Fill.

And there we have it! That’s how to extend an image using Generative Fill, powered by Adobe’s generative AI and now available in Photoshop 2024. Welcome to the future.

Related tutorials:

Don't forget, all of my Photoshop tutorials are now available to download as PDFs!