Generative Fill and Generative Expand
Lesson 2: Generative Fill – Background Replacement
Lesson Objectives
By the end of this lesson, students should be able to:
- Select and separate image subjects from backgrounds for replacement
- Use Generative Fill to generate replacement backgrounds
- Write effective prompts for background generation
- Evaluate background replacement quality for edge blending and consistency
Lesson Content
Background replacement workflow.
Full background replacement in Photoshop combines subject isolation with Generative Fill: Select the background (using Subject Selection to isolate the subject, then inverse the selection to select the background instead); apply Generative Fill with a prompt describing the new background. Alternatively, use Remove Background (AI-powered), then use Generative Fill on the transparent background area. The subject remains untouched; only the background area is filled with AI-generated content.
Effective background prompts.
Background prompts for Generative Fill should describe the specific environment and visual character of the new background: "a blurred modern city street at twilight, bokeh lights, warm amber tones, shallow depth of field background" is more effective than "a city." Background prompts should also be consistent with the subject – a business portrait subject works with office or urban backgrounds; a lifestyle product subject works with home environment backgrounds. Environmental mismatches produce photorealistic but contextually inconsistent results.
Edge quality and subject-background blending.
Background replacement quality depends heavily on the subject selection quality at the edges – particularly for subjects with complex edges (hair, fur, fine clothing detail). Photoshop's Refine Edge tools can improve subject edge quality before Generative Fill replacement. Generated backgrounds blend most cleanly at simple, hard-edged selection boundaries; complex edges with fine detail may show blending artifacts. Review subject-background edge quality carefully before using replacement results professionally.
When to use Generative Fill vs. manual background approaches.
Generative Fill background replacement is most efficient for: moderate complexity subjects with reasonably clean edges; quick concept testing of subject on different backgrounds; social media content where minor edge artifacts are acceptable. Manual background replacement with careful masking remains necessary for: high-quality print or advertising use where edge artifacts are unacceptable; subjects with very complex edges (flowing hair, translucent materials); and situations where the background needs precise, brand-specific characteristics beyond AI generation.
Enroll to continue this lesson.
The preview above shows the lesson objectives and opening lesson content. Enroll to view the full lesson, complete the practice work, and take the lesson quiz.
