Sub topic 2
Preparing Selections That Guide the Result
Assume you can use the Layers panel, make basic selections, and add layer masks. This chapter focuses on preparing the selection before you run Generative Fill. The selection is not just a boundary around an object. It tells Photoshop where new pixels may appear and which nearby pixels should guide the result.
Why the selection matters
Photoshop uses the selected area as the generation region. It also examines nearby image content for color, lighting, texture, perspective, and edges. A useful selection gives the model enough room to create a natural result without including unrelated parts of the image.
A selection that is too tight can produce clipped edges, missing shadows, or incomplete objects. A selection that is too wide can change areas you wanted to preserve.
| Goal | Useful selection approach |
|---|---|
| Add an object | Select the area where the object should appear, including enough surrounding space for its edges and shadow |
| Remove an object | Select the object, its shadow, and small areas around its boundary |
| Replace an object | Select the full old object and nearby transition areas |
| Extend a background | Select the new canvas area and include enough existing background context |
Select the generation area
Start with the tool that matches the shape of the area:
- Use the Lasso tool for irregular regions that you can draw quickly.
- Use the Rectangular Marquee tool for straight-edged areas such as sky, walls, or empty background.
- Use the Object Selection tool when the subject has a clear boundary.
- Use the Quick Selection tool when you need to paint over a subject and adjust the edge manually.
The selection does not need to follow every tiny detail. Generative Fill often works better when the selected region includes the complete object and a small amount of surrounding context.
For example, to remove a person standing on a path, include the person, their cast shadow, and a narrow border of the path. Selecting only the person's coat may leave an unnatural shadow or a visible fragment near the feet.
Improve the boundary
After making a selection, inspect its edge at a useful zoom level. A selection boundary that looks accurate at 25% may cut through important pixels at 100%.
Use these commands from the Select menu when appropriate:
- Select > Modify > Expand moves the boundary outward by a chosen number of pixels.
- Select > Modify > Contract moves the boundary inward.
- Select > Modify > Feather softens the boundary by blending the transition.
Use a small expansion when a hard edge has been missed. Use feathering carefully. A large feather can make generated pixels bleed into a sharp subject or make a replacement look blurry. The right value depends on image resolution and the edge itself. A small feather may suit a high-resolution portrait, while a larger soft edge may suit a hazy landscape.
A selection for a solid object usually needs a cleaner edge than a selection for smoke, clouds, grass, or reflections.
Include context without taking control away
Photoshop needs nearby pixels to infer what belongs in the selected area. Include enough context to show the pattern or surface that should continue:
- For a brick wall, include a region large enough to reveal the brick spacing and direction.
- For a beach, include nearby sand, water, and shoreline if they affect the replacement.
- For a tabletop, include the surface and its shadow direction.
- For a portrait, include the surrounding hair, clothing, and background when replacing part of the subject.
Avoid selecting unrelated areas. If you select half of a person's face along with the background, Photoshop may interpret the face as part of the material to replace. If you select too much sky while removing a small object, the result may alter the sky unnecessarily.
Use masks to protect important areas
If an area must remain unchanged, create a layer mask or place a copy of the original layer above the generated layer. This gives you a way to reveal or hide parts of the result after generation.
Before generating, consider whether the selection crosses:
- A strong horizon or architectural edge
- A person's face, hands, or important clothing detail
- A repeating pattern
- A shadow or reflection
- An area that must align with another layer
For complex work, make several smaller selections instead of one large selection. Smaller regions give you more control, although they may require more generations and more blending afterward.
Check the selection before generating
Use the selection overlay or marching ants to confirm three things:
- The entire unwanted object or intended addition area is selected.
- Important shadows, reflections, and transition pixels are included when needed.
- Nearby areas that must remain unchanged are outside the selection.
When the selection looks correct, the Contextual Task Bar can provide access to Generative Fill. If the result later shows a hard seam or missing detail, revisit the selection first. Many generation problems begin with an incomplete or overly broad selection rather than with the prompt.
Exercise
You want to remove a sign from a brick wall. What should the selection include, and what should it avoid?
Show answer
Include the entire sign, its mounting shadow, and a small border of the wall. Avoid selecting unrelated parts of the wall or nearby objects that should remain unchanged.