Sub topic 3
Running Generative Fill from the Contextual Task Bar
This chapter assumes you can open an image, create a selection with the Lasso, Marquee, or Object Selection tool, and work with layers and masks. You also need a Photoshop version with generative AI features enabled and an Adobe account with available generative credits.
Generative Fill creates new image content inside a selection. Photoshop sends the selected area and surrounding pixels to Adobe Firefly, which returns one or more generated results. The Contextual Task Bar is the floating toolbar that appears near the active selection and provides the main controls for this workflow.
Prepare the selection
Open an image and choose a layer that contains the image content you want Photoshop to analyze. A selection defines both the location and the approximate shape of the requested change.
Use a selection that includes enough surrounding context for Firefly to match the scene:
- For a new object, select the area where the object should appear. Include a small amount of surrounding background.
- For an object replacement, select the old object and some of its immediate surroundings.
- For a small repair, select slightly beyond the damaged pixels so Photoshop can match nearby texture, lighting, and color.
- For an irregular subject, use the Object Selection tool first, then adjust the selection with the Lasso tool.
Avoid selecting only a thin outline around an object. A selection that is too tight can leave hard edges, halos, or repeated texture. A selection that is much larger than necessary gives Firefly more freedom, but it can also alter nearby details.
After making the selection, check the marching ants around its boundary. If the edge is rough, use Select and Mask or a feather of one or two pixels. Keep the feather small. Excessive feathering can make the generated content look soft.
Use the Contextual Task Bar
When a selection is active, the Contextual Task Bar usually appears near it. If it is hidden, open the Window menu and enable Contextual Task Bar. The available labels can vary between Photoshop releases, but the workflow is similar.
- Select Generative Fill in the Contextual Task Bar.
- Type a short description in the prompt field.
- Select Generate.
- Wait for Photoshop to create the result.
- Review the generated variations in the Properties panel or Contextual Task Bar.
For example, select an empty area beside a person and enter:
a red ceramic mug on the wooden table
Use nouns and visual details that matter. You do not need to describe the entire image because Photoshop already uses the selected area and nearby pixels as context.
If you want Photoshop to infer a continuation from the existing image, leave the prompt empty and select Generate. An empty prompt is useful for removing an object, extending a texture, or filling a background with content that matches its surroundings.
The result normally appears on a new generative layer. This layer keeps the generated pixels separate from the original image, so you can hide it, replace its variation, or adjust it without permanently changing the source layer.
Understand the main controls
| Control | Purpose |
|---|---|
| Generative Fill | Starts the fill workflow for the active selection |
| Prompt field | Describes content to add or replace |
| Generate | Sends the selection and prompt for processing |
| Variations | Shows alternate results for the same generation |
| Properties panel | Provides access to the prompt, variations, and generative layer settings |
The generated result is influenced by more than the prompt. The selection shape, nearby pixels, perspective, lighting, and image resolution all affect the output. A precise prompt cannot fully correct a selection that provides poor context.
Handle common errors
If Generative Fill is unavailable, confirm that a pixel-based layer is selected and that an active selection exists. Some document modes, unsupported color settings, or restricted account states can also disable generative features.
If the result includes an unwanted object, select a smaller region around that object and generate again. If the result has a visible seam, enlarge the selection slightly so Firefly can rebuild the transition. If the generated perspective is wrong, include more of the surrounding scene and describe the viewpoint or orientation in the prompt.
Treat the first generation as a draft. The most reliable results usually come from changing one variable at a time: improve the selection, shorten the prompt, or choose another variation.
Exercise
You want to remove a small sign from a brick wall without changing the nearby bricks. What workflow should you try first?
Show answer
Select the sign and a narrow border of surrounding wall, choose Generative Fill, leave the prompt empty, and select Generate. Review the variations, then repeat with a slightly larger or smaller selection if the brick pattern does not blend.