Sub topic 1
What Generative Fill and Generative Expand do
Prerequisites
This chapter assumes you can already do the following:
- Open an image in Photoshop and find your way around the toolbar and the Layers panel.
- Make selections with the Lasso, Marquee, and Object Selection tools.
- Explain what a layer and a layer mask are.
- Sign in with an Adobe account on a Photoshop version that includes generative AI features.
You do not need any prior experience with prompts or AI image tools. This chapter builds the working model that the later chapters rely on. Menu names and panel layouts change between Photoshop releases, so check the exact wording in your version.
The core idea
Generative Fill and Generative Expand are two Photoshop features that create new pixels. They use a generative model called Adobe Firefly. A generative model is a program trained on a large set of images that can produce new image content from an instruction and some surrounding context.
Both features answer the same question: "What should appear in this region of the image?" They differ in how you define the region.
| Feature | Region you define | Typical use |
|---|---|---|
| Generative Fill | A selection inside the existing canvas | Add an object, replace an object, remove an object, change a background |
| Generative Expand | The new empty area created when you enlarge the canvas with the Crop tool | Widen a photo, change the aspect ratio, add sky or ground around a subject |
In both cases Photoshop gives the model three kinds of input:
- The pixels around the target region, which act as context.
- The shape of the target region, which controls where new content may appear.
- An optional text prompt, which describes what you want.
The model returns new content for the target region. Photoshop places that content on its own layer, so your original pixels stay unchanged.
Where the processing happens
Generative Fill and Generative Expand do not run on your computer's graphics card alone. Photoshop sends the relevant image data to Adobe's servers, where Firefly generates the result. Photoshop then downloads the result and shows it in your document.
This has practical effects:
- You need an internet connection. If you are offline, the generative controls will not work.
- Generation takes a few seconds and depends on your connection and on server load.
- Each generation can use a generative credit from your plan. Credits are covered in a later chapter.
- Your edits depend on a service. Results can change when Adobe updates the model, so the same selection and prompt may not produce an identical result months later.
How Generative Fill works
Generative Fill is selection-based. The steps are:
- You make a selection on a pixel layer or on a composite of the visible layers.
- The Contextual Task Bar appears near the selection and offers a Generative Fill button.
- You type a prompt or leave it empty, then select Generate.
- Photoshop sends the selection and the surrounding image to Firefly.
- Firefly returns several variations. Photoshop creates a generative layer that holds the result.
The selection does two jobs. It marks where new pixels may be written, and it tells the model which nearby pixels to match in color, lighting, perspective, and texture.
What the model sees
The model does not simply read your prompt in isolation. It looks at the area around the selection and tries to make the new content fit. For example, if you select an empty patch of table in a warm-lit kitchen photo and type "a ceramic bowl of lemons", the bowl tends to pick up the warm light, the table's perspective, and a plausible shadow.
Because the surrounding image is part of the input, the same prompt in two different photos gives two different results. This is why the selection chapter that follows matters: a selection that includes too little context, or the wrong context, produces content that does not match.
Three common intents
You can group most Generative Fill work into three intents:
- Add: select an empty area and describe a new object.
- Replace: select an existing object and describe what should take its place.
- Remove: select an unwanted object and leave the prompt empty, so the model fills the area with a continuation of the background.
An empty prompt is a deliberate choice, not a missing step. With no text, the model relies entirely on the surrounding context. That is why it works well for removing a power line or a stray person from a scene.
How Generative Expand works
Generative Expand is canvas-based. You use the Crop tool to drag the edges of the canvas outward past the image. The area beyond the original image is empty. When you confirm the crop with the generative expand option active, Photoshop treats that empty area as the target region and fills it.
The context here is the edge of the existing image. The model continues what it sees: a horizon keeps going, a wall keeps its texture, a sky keeps its gradient.
You can use Generative Expand to:
- Change a portrait photo to a landscape format, for example for a banner.
- Give a subject more room so you can crop it differently.
- Add sky above a building that was cut off.
- Extend a background to fit a layout that needs more space on one side.
Like Generative Fill, Generative Expand returns variations on a generative layer. You can also give it a prompt, or leave the prompt empty so the model simply extends the scene.
A comparison of the workflow
The following diagram shows how both features share one pipeline and differ only in how the target region is defined.
Why the result is a generative layer
When generation finishes, Photoshop does not paint over your image. It adds a new layer with a layer mask, called a generative layer. The mask limits where the new content shows, and the original layer below is untouched.
This design has consequences:
- You can hide the generative layer to see the original at any time.
- You can edit the mask to reveal or hide parts of the result.
- You can delete the layer to undo the change, even after other edits.
- Each generative layer stores its own set of variations, which you can browse later in the Properties panel.
This behavior is the foundation of non-destructive editing with these tools, and a later chapter covers it in detail.
What these features are good at
Generative Fill and Generative Expand work best on content that is common, loosely defined, and tolerant of small errors:
- Natural backgrounds such as sky, grass, water, foliage, and walls.
- Simple objects such as a vase, a cloud, or a pair of sunglasses.
- Removing small or medium distractions against a plain or repeating background.
- Extending edges where the scene continues in a predictable way.
What they struggle with
Knowing the weak spots early saves time. A later chapter on limits goes into more detail, but keep these in mind from the start:
- Fine structure: hands, text, logos, and intricate patterns often come out distorted or invented.
- Exact identity: the model cannot reproduce a specific real person, product, or brand from a description.
- Precise geometry: straight architectural lines and exact perspective can drift in large generated areas.
- Large regions: the bigger the generated area compared with the original context, the more the result can drift from the original scene.
- Resolution: generated content may look softer than the original photo, especially on high-resolution files.
Generative Fill compared with older tools
Photoshop already had tools that fill or remove content. It helps to know how Generative Fill differs.
| Tool | Source of new pixels | Works well when |
|---|---|---|
| Clone Stamp | Pixels you sample from elsewhere in the image | You can find a matching patch to copy |
| Content-Aware Fill | Pixels borrowed and blended from the same image | The background repeats or is simple |
| Generative Fill | New pixels created by a model | You need content that does not exist anywhere in the image |
The key difference is that Clone Stamp and Content-Aware Fill can only reuse what is already in the picture. Generative Fill can invent content that was never there. That makes it more flexible, and also less predictable, because the output is not copied from a known source.
A worked example in words
Suppose you have a photo of a lake at sunset. A jogger is on the left shore, and the photo is in portrait orientation. You need a wide banner with no jogger.
- Select the jogger with Object Selection. Expand the selection a few pixels so it covers the edges and shadow.
- In the Contextual Task Bar, choose Generative Fill, leave the prompt empty, and select Generate.
- Review the variations and pick the one where the shore looks continuous.
- Choose the Crop tool and drag the left and right edges outward to a wide ratio.
- Choose the generative expand option, leave the prompt empty, and confirm.
- Check the result. The sky and water should continue past the original edges.
After these steps, the Layers panel shows two generative layers above your original photo. You can hide either one to compare with the original.
Checking your understanding of inputs and outputs
Keep a simple mental model for every generation:
- Input: target region, surrounding context, optional prompt.
- Process: Firefly generates several candidates on Adobe's servers.
- Output: a generative layer with a mask and a set of variations.
If a result looks wrong, ask which input caused it. A poor match is usually a context problem, so adjust the selection. Unwanted objects are usually a prompt problem, so change the wording or clear the prompt. Edge artifacts are usually a mask problem, so refine the mask.
Exercise
You select a tourist standing on a beach and run Generative Fill with an empty prompt. Which input does the model use to decide what to put in the selection, and why does this work for removal?
Show answer
It uses the surrounding pixels as context. With no prompt, the model continues the nearby sand, water, or sky into the selected area, so the area looks like background and the tourist disappears.
Exercise
A colleague says Generative Expand and Generative Fill are two unrelated tools. Name the one thing that differs between them and the things they share.
Show answer
They differ in how the target region is defined: Generative Fill uses a selection inside the canvas, while Generative Expand uses the empty area added when you enlarge the canvas with the Crop tool. They share the same pipeline: context from surrounding pixels, an optional prompt, Firefly generation on Adobe's servers, and variations returned on a generative layer.
Exercise
Why does Photoshop place generated content on a separate generative layer with a mask instead of painting it into your original layer?
Show answer
It keeps your original pixels untouched so the edit is non-destructive. You can hide or delete the layer, edit the mask to show or hide parts of the result, and browse the stored variations later.