AI Image Generation and DesignEditing, upscaling and finishing · Lesson 7 of 18

Inpainting, outpainting and generative fill

Article · 8 min · 8 min lecture

Video lecture

Inpainting, outpainting and generative fill

10 chapters · about 8 min · full transcript

Coming soon

Chapter 1 of 10

Inpainting, outpainting and generative fill

  • Rescue the 80% image
  • Edit prompts that work
  • One image, many formats
  • Keep edits honest

The narrated lecture is in production

Every chapter is scripted and ready. Browse the chapters and read the full transcript now — the video will appear here when it’s published.

Chapters

Editing is where AI images become usable

Many AI images are 80% right: a great composition with a distorted hand, an odd object in the background, or the wrong aspect ratio. Rather than regenerating from scratch and losing what works, use targeted editing.

Key editing techniques

TechniqueWhat it doesTypical use
InpaintingRegenerates a selected (masked) area guided by a promptFix hands, change clothing, remove objects, add details
Outpainting / generative expandExtends the canvas beyond the original edgesConvert 1:1 to 9:16, create space for text
Generative fillFills a selection with generated content (in design suites)Remove distractions, add elements, extend backgrounds
Object removalRemoves selected items and fills naturallyClean up photos and AI outputs
Background replacementSeparates subject and generates a new backgroundProduct scenes, portraits
Conversational editsText instructions to modify an imageQuick changes like color or lighting

Inpainting step by step

  1. Select the area slightly larger than the problem, including a little surrounding context so the fill blends.
  2. Write a local prompt describing only what should appear in the masked area ("relaxed open hand resting on the table"), not the whole scene.
  3. Generate several options and choose the one that matches lighting, perspective and texture.
  4. Check edges for seams, color shifts or texture mismatches.
  5. Repeat in small steps for multiple fixes rather than masking huge areas at once.

Tips:

  • For faces and hands, smaller masks usually preserve identity and style better.
  • If the fill keeps failing, simplify: change the pose description, or crop the problem out of frame.
  • Match grain and sharpness; generated patches can look smoother than surrounding areas.

Outpainting for new formats

Outpainting is especially useful for social formats. A strong 1:1 image can be extended to 9:16 for stories, or to 16:9 for thumbnails, by generating additional content above/below or to the sides.

Best practice:

  • Extend in stages (for example, add a portion at a time) rather than a huge expansion at once.
  • Describe what should appear in the new area ("continuation of the sky with soft clouds", "more of the wooden table surface").
  • Keep the subject within safe zones after expansion.
  • Check for repeated patterns, warped perspective or duplicated objects at the edges.

Editing real photographs

Generative editing is also used on real photos. This is powerful and needs care:

  • Acceptable edits usually include removing distractions, cleaning backgrounds, extending canvas for layout, and color correction.
  • Risky edits include changing a person's body, face or skin in ways that misrepresent them; altering product appearance or results; adding people or events that did not happen in a documentary context.
  • Consent: editing images of real people — especially changing their appearance — should be done with their knowledge and consent.
  • Disclosure: some platforms require labels for realistic content that has been materially altered or synthetically generated; some advertising regulators have specific rules on filters and retouching in beauty advertising.

Content provenance

Some tools attach Content Credentials (based on the C2PA standard) or invisible watermarks to generated or edited images, recording that AI was used. Platforms may read this metadata and apply labels automatically. Do not deliberately strip provenance data to hide AI use; this can breach platform policies and undermines trust.

Worked example: a restaurant promo

A generated 1:1 image shows a beautiful table of dishes, but there is a fork with four prongs merging into a plate, a garbled menu card, and the client needs a 9:16 story version.

  1. Inpaint the fork area: "a simple silver fork resting beside the plate".
  2. Inpaint the menu card: "a plain blank card" (real menu text will be added in the design tool).
  3. Outpaint upward in two stages: "warm restaurant ceiling with soft pendant lights, out of focus".
  4. Check that dishes still represent real menu items accurately — if the image is used to advertise specific dishes, it should reflect what customers actually receive; for real menu items, real food photography is often more appropriate.

Editing checklist

[ ] Mask slightly larger than the problem, include context
[ ] Local prompt describes only the masked area
[ ] Multiple options generated; best match chosen
[ ] Seams, lighting, perspective, grain checked at 100% zoom
[ ] Outpainted areas free of duplicates and warping
[ ] No misrepresentation of people, products or results
[ ] Provenance metadata preserved; disclosure needs assessed

Common mistakes

  • Masking huge areas and losing the original image's quality.
  • Writing the whole-scene prompt for a small inpaint.
  • Not zooming in to check seams.
  • Using generative edits to alter people's bodies or product results misleadingly.

What's new: model choice and instruction edits inside the editor

In current versions of Photoshop, Generative Fill and Generative Expand let you choose which model does the work — Adobe's own models (such as Firefly Fill & Expand and Firefly Image 5) and, on eligible plans, partner models from other labs. Adobe notes that partner models come and go (for example, support for an older Gemini model is being removed in 2026), so check the model menu and Adobe's help pages before building a workflow around one model. Assistant-built models (GPT Image, Gemini image models) also edit by instruction: you upload an image and describe the change.

Two practical rules:

  • Adobe's commercial-use and training terms apply to Adobe's own models; partner models may have different terms. Check before client work.
  • Instruction edits can change more than you asked. Compare before and after at 100%, especially faces, labels and hands.

Hands-on: edit prompt templates

LOCAL INPAINT (describe only the masked area)
"relaxed open hand resting on the table, natural skin texture,
same warm light from the left"

REMOVE
"empty wooden tabletop continuing the existing grain" (or leave blank
in tools where an empty prompt means 'remove')

EXPAND FOR A NEW FORMAT (in stages, ~20-30% per step)
"continue the café interior upward: plain warm-white wall, soft shadow,
no new objects" — leave this area calm for the headline

INSTRUCTION EDIT (assistant-built models)
"Keep everything exactly the same, including the product label and the
person's face. Only change the tablecloth from white to deep green linen."

Worked example: one image, three formats

A cosmetics shop in Jeddah has a 1:1 AI product scene and needs 4:5 feed, 9:16 story and 16:9 web banner versions (illustrative brief).

StepActionCheck
1Place the real product photo layer above the AI background (never regenerate the product)Label and cap unchanged
2Expand canvas to 4:5, generate the top area in one passNo repeated patterns
3Expand to 9:16 in two steps (top, then bottom)Safe zones clear for UI
4Expand to 16:9 left and right in two stepsHorizon line straight
5Inpaint any seams; add grain to matchEdges invisible at 100%
6Export with Content Credentials enabled where supportedProvenance kept

Before: cropping the 1:1 to 9:16 would have cut the product in half. After: one scene, three native formats, product untouched.

Summary

Use inpainting for targeted fixes, outpainting for new formats, and generative fill for clean-ups; work in small steps, check at full zoom, preserve provenance, and never use edits to mislead.

Key takeaways

  • Edit near-miss images with targeted inpainting instead of regenerating and losing what works.
  • Use small masks with local prompts, and expand canvases in stages to avoid repetition and warped perspective.
  • Keep real products as untouched photo layers; never regenerate the product itself.
  • Know which model performed an edit — partner models in design tools may have different terms.
  • Cleanup is fine; altering facts is not. Keep Content Credentials and get consent to alter real people.

Check your understanding

Quick questions to lock in the lesson. They don’t count towards your certificate.

  1. When inpainting a distorted hand, what should the local prompt describe?
  2. What is the best way to convert a 1:1 image into a 9:16 story?
  3. Why should you avoid stripping Content Credentials from AI-edited images?

Put it into practice

Take an AI image with at least two flaws. Fix each with a separate small inpaint, then outpaint it to a second aspect ratio in stages, completing the editing checklist.

Enrol for free to save your progress

Reading is always free. Enrol to keep your place, take the final assessment and earn a verifiable certificate.