Editing an ImageLesson 60 of 78

Contents

Editing an Image

Lesson 60 of 78. Sign in to keep your place.

Module 7 · AI inside the image editor

Getting a usable result in three attempts instead of thirty

9 min read

Decide what you are asking for

Three different jobs, three different approaches.

Removing something. Leave the prompt empty. An empty prompt tells the model to continue what surrounds the mask, which is exactly what you want. Typing “grass” when removing a bin from a lawn often makes things worse, because it biases the generation towards a generic idea of grass rather than towards this lawn.

Adding something. Describe it, including the light and the material. “A terracotta plant pot, soft window light from the left, shallow depth of field” produces a more usable result than “plant pot”, because those words also steer the rendering rather than only the object.

Changing something. Use a moderate denoising strength if the tool exposes one, so the existing shape constrains the result. Changing a shirt’s pattern while keeping its folds is this case.

The practical settings

  • Mask expansion of 10 to 30 pixels and a feather of 5 to 15. As the previous lesson explained, this is the setting that matters most.
  • Work in passes. Fill the largest region first, then run smaller fills over the parts that came out wrong. Each subsequent pass sees the previous one as context, so the result converges.
  • Generate three variations, always. They are cheap and the spread is large.
  • Composite rather than accept. Put the generated result on its own layer, mask it, and keep the parts that worked. You are not obliged to take the whole thing.

That last point is the one that separates people who get good results from people who conclude the tool does not work. A generation that is 70 per cent right and 30 per cent wrong is a useful layer, not a failure.

A worked example

A photograph of a table with a coffee cup, and the client wants the cup gone and the wooden surface continuous.

  1. Select the cup with a rough lasso, expand by 20 pixels.
  2. Empty prompt. Generate three.
  3. Two produce plausible wood; one has a ghost of a shadow. Take the best.
  4. Put it on a layer, mask it to just the cup area plus a small margin, and check the wood grain lines against the real ones either side. They probably do not continue.
  5. Fix the grain: clone a strip of real grain from elsewhere on the table, transform it to the right angle, and mask it over the discontinuity.
  6. Add grain and match the black point across the whole image, as in the compositing block.

Steps 4 to 6 are what make it invisible, and they are the steps the demonstration videos leave out.

Resolution, and the two-pass technique

Most implementations generate at a fixed internal resolution and scale the result to fit your selection. On a large file that means a soft patch.

The workaround: crop, fill, and composite back. Copy a region around the area you want to fill into a new document at a size close to the model’s native resolution, do the fill there, then bring the result back and blend it in. More steps, considerably sharper.

Or fill at the original resolution and then sharpen the filled region locally to match, which is cruder and often enough.

Where it beats manual work, and where it does not

Faster than manual: organic textures: foliage, gravel, water, sky, crowds, grass, clouds. Extending a background. Removing a person from a complex scene. Filling a corner of a badly-shot frame.

Slower than manual, or worse: anything with text. Anything with regular geometry: brickwork, tiling, panelling, windows. Small faces. Hands. Product surfaces, where the result must be the actual product. Repeated patterns where a copy-and-transform is exact and a generation is approximate.

Do not use at all: where the content matters as a record. A document, a number plate, a medical image, a news photograph, a forensic exhibit.

Prompting notes that are actually useful

  • Describe the photograph, not the object. “Shot on 50 mm, overcast light, slight film grain” steers the rendering towards something that will composite.
  • Negative prompts, where available, are for the recurring failures: “text, watermark, extra limbs, duplicate”.
  • Short and specific beats long and elaborate. Long stacked prompts of style words dilute the conditioning rather than compounding it.
  • The surrounding pixels dominate. For an inpaint, the context is a far stronger constraint than the prompt, which is why an empty prompt works so well for removals.

The free routes

Adobe’s Generative Fill is in Photoshop and requires a subscription and generative credits. The free equivalents run locally:

  • ComfyUI or AUTOMATIC1111’s web UI with an inpainting model. Both free, both run Stable Diffusion variants locally. With a graphics card they are fast; on a CPU an inpaint takes one to several minutes, which is slow but workable for a handful of fills.
  • Fooocus is a much simpler front end with an inpaint mode and sensible defaults, aimed at people who do not want to learn a node graph.
  • Krita has an AI diffusion plugin that puts local inpainting directly into the editor, on a layer, with masks, which is the most integrated free option there is.
  • GIMP has several plugin routes of varying maintenance quality.

The hardware reality is covered later in this module. The short version: 8 GB of video memory runs these comfortably, 4 GB runs them slowly, and no graphics card runs them very slowly but does run them.

The limitation to keep in front of you

A generative fill produces something that looks right. Whether it is right is a question the tool cannot answer and does not attempt to.

For a lawn, nobody cares. For a shopfront, a label, a face or a road sign, the difference between looking right and being right is the entire content of the picture. The practical habit is to ask, before each fill: if this region were wrong, would anyone be misled? If yes, do it by hand or leave it.

Every lesson here is open. Your progress is recorded once you pass the Design, before Any Software exam.

Check your understanding

An editor removing a bin from a lawn types the prompt “green grass” and gets a patch that looks like grass but does not match the lawn’s mowing stripes or colour. Why does an empty prompt usually work better here?

Pick the one you would defend. Your answer stays private.

Next lesson · 8 minMaking a photograph bigger than it was taken

Stuck on something?Ask Neema, your AI tutor

How to cite: Addaly (2026) ‘Getting a usable result in three attempts instead of thirty’, in Editing an Image. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/image-editing/generative-fill-in-practice (Accessed: 13 October 2026).