Extend an Image in Photoshop with Generative Fill

PS Hacks
38 followers
#GJWart #photoshop #pshacks #tutorial #tuts #Easy_Photoshop #effect #howto #howfix #edit #editimages
0:00 Introduction to Generative Fill in Photoshop
3:39 Extending Images with Generative Fill
6:56 Adding Extensions and Managing Layers
9:59 Removing Unwanted Elements with Remove Tool
11:53 Conclusion and Final Tips
This video tutorial demonstrates how to use the AI-powered Generative Fill feature in Photoshop Beta to extend the canvas of an image. The instructor explains how to expand borders, select areas for filling, and manage AI-generated variations to seamlessly blend new content with original photos.
Hi everyone, Steve here from Photoshop Essentials. In this video,
I show you how to extend an image using Generative Fill in Photoshop.
Generative Fill is Adobe's AI-powered content creator
and is currently only found in the
Photoshop Beta, which is what I'm using here.
If you don't have the Beta, check out my separate
video on how to download and install it,
and you'll find a link in the description.
So here's the basics of how to use Generative Fill to extend an image.
We'll look at a few different images, but I'll start with this one.
I want to extend the left and right sides
and turn this portrait shot into a landscape photo.
So first, we need to extend the canvas.
So I'll grab the Crop tool from the toolbar.
In the Options bar,
make sure that the Aspect Ratio is set to Ratio and that the Width and
Height boxes are both empty.
If they're set to something else, just click the Clear button.
And then, drag the crop border to the edges of the image.
You can extend just one side of the image
by dragging the crop border outward.
Or, to extend both sides at the same time,
hold the Alt key on a Windows PC,
or the Option key on a Mac, and then continue dragging.
Release your mouse button, then release the Alt or Option key,
and then click the checkmark in the Options bar to accept it.
Next, we need to select the new canvas.
So I'll switch to the Rectangular Marquee Tool.
Then I'll drag a rectangular selection around the canvas on the left.
Notice that I'm also including a bit of the image in the selection.
That's because Generative Fill needs it
so it can blend the new content with the original
photo.
If you don't include it,
you'll end up with a line or a seam where the new content and
And the original content meet.
Then to add the right side of the canvas to the selection,
hold the Shift key on your keyboard and drag a selection around it,
again making sure to include some of the image as well.
And now we have both sides selected.
I'll show you a different way to select the canvas
when we look at the next image.
The Generative Fill option is found in the new Contextual Taskbar,
which is this horizontal bar
that shows different options depending on what we're doing.
If you don't see it,
Go up to the Window menu and choose Contextual Taskbar down near
the bottom, then click Generative Fill.
And this opens a prompt box where we can type
a description of what we want to fill the selection
with. But when you're extending an image,
leave the prompt box empty, so Photoshop knows to fill
the area with content that matches the original photo.
And with this image, along with adding
more of the desert, Generative Fill will need
to match the light source, which is the sunset
over on the right, so that the new content includes
these long dark shadows.
So let's see what it can do.
To add the new content, click Generate.
Photoshop needs to send the file over the internet to Adobe's servers,
where the AI content is generated.
And you'll see a progress bar while you wait. It usually takes
10 to 15 seconds. And then the new content appears.
And in this case, Generative Fill
did an amazing job. It added more of the sun setting behind a hill,
plus all of this new desert area,
and we're seeing those long dark shadows that we'd expect.
It looks like this could have been the original photo.
In the Layers panel, we have a new kind
of layer called a Generative Layer,
which holds the new content
and keeps it separate from the original photo.
So you can toggle the new content
on and off to compare it with the original.
In the Properties panel,
we have three variations of the new content that we can choose from,
and you can click on the thumbnails to try them out
and choose the one you like best.
The second one isn't bad,
but the third one has a weird spot over on the left,
and the sunset looks a little bland.
So I think I like the first one the best.
You can also click the Generate button
to generate three more variations.
I'll fast forward through the progress bar,
and the new variations appear
above the previous ones.
And you can click the thumbnails to try them out.
Now, the big problem with AI-generated content
is that you never really know what you're going
to get. And not all of the results will look good.
You can keep clicking Generate until you
get the result you want,
but keep in mind that all of these variations add to the file size.
So it's a good idea to delete the ones you don't like,
by hovering over the thumbnail,
clicking the three dots, and choosing Delete.
I'll delete a few of them,
because I still like the original result the best.
And that's the basics of how to extend an image with Generative Fill.
So let's move on to some other images
so I can show you a few different ways to work.
With this image, I again want to extend the left and right side.
But this one has a very shallow depth of field.
The background and the foreground are both out of focus.
So let's see what Generative Fill can do.
I'll grab the Crop Tool from the Toolbar.
And I'll hold the Alt key or the Option key on a Mac
so I can drag out both sides of the canvas at the same time.
And I'll click the checkmark to accept it.
Then I'll grab the Rectangular Marquee Tool,
but this time, instead of selecting the left
side first and then holding Shift and adding the right side,
I'll drag my selection inside
the image itself, making sure to leave a bit
of room between the selection and the sides
of the image.
Then I'll click the Invert button in the Contextual Taskbar
to invert the selection and select
both sides.
I'll click Generative Fill.
And then Generate, I'll fast-forward through the progress bar,
And once again, it does an amazing job.
The new content matches perfectly with the original photo,
and even keeps the shallow depth of field.
In the properties panel, we again have three
variations to choose from,
but a faster way to cycle through them is to use the arrows
in the contextual taskbar.
So if I click the right arrow, we see the second variation,
and this one looks good,
except for that dark part of the tree that's kind of distracting.
And if I click the arrow again, we get the third variation.
I'll click it one more time
to get back to the first one.
And if you don't like any of them, you can click
Generate here in the taskbar to generate three more.
But I'm pretty happy with this one.
Again, in the Layers panel, we have our generative layer,
which you can toggle on and off to compare
the new content with the original.
Let's move on to our third image.
Extending an image does not have to be something extreme.
Sometimes you just need to add a bit of extra space.
With this image, notice how the left side
of the man's jacket was cropped away.
So I'll grab the crop tool,
and I'll drag out some extra room on the left.
And instead of clicking the checkmark,
I'll press Enter or Return on a Mac to accept it.
Then I'll grab the Rectangular Marquee Tool
so I can select the new area,
including a bit of the image.
I'll click Generative Fill, and then Generate.
And look at that! Generative Fill actually recreated
the missing part of his jacket.
I can use the arrows to cycle through the other two variations.
They all look pretty good, but I think the first one is the best.
So let's move on to our fourth and final image.
So far, we've been extending just the left and right sides.
But you can also extend the top or the bottom.
So with this image, I'll extend the sides and the top.
And for the best results, I'll work one section at a time.
But before I do that, I'm going to unlock the background layer.
And that way, the new canvas will be transparent rather than white.
And that's important
because we don't want Generative Fill thinking that the white canvas
is part of the image. We just want it to look at the image itself.
I'll zoom out so I have more
room to work. Then I'll grab the Crop Tool
and I'll hold the Alt key or the Option key on a Mac
so I can drag out the left and right sides together.
Then I'll release the Alt or Option
key and I'll drag the top of the crop border upward.
And I'll click the checkmark to accept it.
And notice that because I unlocked the background layer,
the new canvas is transparent.
And then I'll grab the Rectangular Marquee tool,
and I'll select just the left side of the canvas.
If you didn't start your selection in the right spot,
you can hold the spacebar on your keyboard,
drag the outline to reposition it,
and then release the spacebar and continue
drawing the selection.
And don't forget to include some of the image as well.
I'll click Generative Fill, and then Generate,
and I'll fast forward through the progress bar,
and that looks good. I'll cycle through the other variations,
but I'll go with the first one.
And notice that we have a generative layer
that holds the new content for just the left side.
I'll select the right side of the canvas,
and then I'll click Generative Fill, and Generate.
Yep, I think that looks good.
Again, I can cycle through the variations. That one's not so good.
And neither is that one. I'll go with the first one.
And we now have a second generative layer
that holds the content for only the right side.
Finally, I'll drag a selection around the top of the canvas.
And then I'll click Generative Fill and Generate.
And that looks OK. I'll move the taskbar out of the way.
And then I'll try the second variation.
And I think I like this one better.
I'll try the third one. But nope, I like the second one.
I'll move the taskbar down below the image.
And in the Layers panel, we now have three generative layers.
One for the left, one for the right, and one for the top.
The only thing I don't like about
this image is that wire running overhead,
which is actually part of the original photo.
But I can quickly remove it with Photoshop's
Remove Tool, which is another AI-powered feature.
So let's finish up with a quick look at how it
works. First, in the Layers panel,
I'll click the Add New Layer icon to add a new blank layer
above the generative layers.
And then I'll grab the Remove Tool from the toolbar.
Which is nested in with the Spot Healing Brush
and Photoshop's other healing tools.
In the Options Bar, I'll turn on Sample All Layers,
and I'll make sure that Remove After
Each Stroke is selected.
And then I'll use the right bracket key
on my keyboard to make the brush a bit larger,
and all I need to do is paint over the wire to remove it.
Each time I release my mouse button,
Photoshop replaces the area with new AI-generated content.
I could try to paint across the wire all at once,
but I find you get better results with
shorter strokes.
And just like that, the wire is gone.
The new content is on a separate layer,
so I can toggle it on and off to compare the results.
And if I hold the Alt key or the Option key on a Mac
and click the bottom layer's visibility icon,
we see the original image.
And if I click it again, we get the extended result.
And there we have it.
That's how to extend an image using Generative Fill in Photoshop.
If you enjoyed this video, don't forget to like and subscribe,
and check out my other videos to learn more about Photoshop.
Thank you so much for watching, and I'll see you in the next video.
I'm Steve Patterson from Photoshop Essentials.
