KitanaAI Photo & VideoStudio
photo maker · 4 min read

How to Remove Unwanted Objects From Photos Using AI

A practical method for removing people, signs and clutter from a photo: what to select, why shadows matter, and how to fix the cases that fail the first time.

By the Kitana team
HTPHOTO MAKER

Object removal is the edit people try first and abandon fastest, usually because the first attempt leaves a smear and the conclusion is that the tool is bad. Almost always the tool was fine and the selection was wrong.

The method below takes a couple of minutes and handles most real photos.

Understand what is being asked

When you select an object and remove it, the model is not erasing. It is being asked: given everything around this region, what was most likely behind it? It then generates that.

Which means the quality of the result depends almost entirely on how much useful context surrounds the selection. A rubbish bin on a plain pavement is easy — the answer is "more pavement". A rubbish bin in front of a shop window with text on it is hard, because the correct answer is specific information the model has never seen.

So before selecting, ask yourself: could a person who had never been there draw what was behind this? If the answer is no, expect invention.

Select wider than feels right

This is the single most common mistake. People trace the object precisely and leave a halo.

The edge of any object in a photo is not a hard line — it is a blend across a few pixels, plus whatever soft shadow or reflected light it casts on its surroundings. Select tightly and you leave that blend behind, and the result is a faint outline of the thing you removed, which is arguably worse than leaving it there.

Go several pixels wider than the object appears. The extra area costs you nothing, because the model has ample surrounding texture to fill it from.

Include the shadow

The second most common mistake, and the one that makes a removal read as fake even when the fill is perfect.

If your object was sitting on the ground, or standing near a wall, it cast a shadow. Remove the object and leave the shadow, and you have a shadow with no cause. People do not consciously notice shadows, but they notice when one is wrong.

Either include the shadow in your selection, or do a second pass over it afterwards. The second pass is often better, because a selection that spans both object and a long shadow can be large enough to trigger the blurriness problem below.

Work in small pieces

A large selection means a large region the model has to invent, and large inventions are softer and less consistent than small ones.

If you are removing something big — a car, a whole person, a sign — do it in two or three passes rather than one. Remove the top half, check it, then the bottom half. Each pass has more real context around it and less to guess.

This matters most against detailed or repeating backgrounds. A single large fill across a brick wall will usually break the pattern rhythm. Three smaller fills usually will not.

Check four things

Zoom to 100 percent on the area and look for:

  1. A ghost outline — you selected too tightly.
  2. An orphaned shadow — you forgot the shadow.
  3. A soft patch — the fill is blurrier than its surroundings; redo in smaller pieces.
  4. Broken rhythm — in brick, tile, fence or fabric, check the pattern actually lines up across the repair.

If all four are clean, nobody will know.

When it will not work

Be realistic about these, because trying harder does not help:

  • Anything overlapping your main subject. The tool has to invent part of the subject. It will, and it will be wrong.
  • Text and logos behind the object. Never recoverable. The model will produce convincing nonsense.
  • Faces behind the object. Same problem, higher stakes.
  • Reflections. Remove a person standing by a window and their reflection stays. Reflections are a second copy you have to handle separately.

The deeper question of why these particular cases fail — and what that says about how the models work — is worth reading if you use this tool often: how AI object removal works and when it fails.

A working sequence

  1. Decide whether the background behind the object is reconstructible. If not, stop.
  2. Select the object generously, several pixels wider than it looks.
  3. Include or separately handle the shadow.
  4. Split anything large into two or three passes.
  5. Check for ghost, shadow, softness and rhythm.

If what you actually want is to replace everything behind the subject rather than one object, that is a different and easier job — see background replacement. And if the photo is small or soft to begin with, upscale it first so the fill has more detail to match.

Object removal is one of the thirteen tools in the iOS and Android apps; the browser studio carries four of them, including background replacement and restyling.

Frequently asked questions

Why does a faint outline remain where the object was?
Your selection was too tight. The object's edge is a blend of object and background across a few pixels, and anything you leave behind becomes a ghost. Reselect a few pixels wider than the object actually looks — the fill has plenty of surrounding texture to work from, so being generous costs nothing.
Do I have to remove the shadow separately?
Usually yes, and forgetting it is the most common reason a removal looks wrong. The object is gone but its shadow stays, and a shadow with nothing casting it is immediately readable as an error. Include the shadow in the selection, or run a second pass over it.
Why does the fill look blurry compared to the rest of the photo?
The model generates the patch at its own internal resolution and it does not always match the sharpness of the surrounding image. On a large removal in a detailed area this shows. Removing in two or three smaller passes usually produces a sharper result than one large one.
Can I remove a person standing in front of the main subject?
If they overlap the subject, no — the tool would have to invent the part of your subject that was hidden, and it will invent something plausible rather than correct. If they are beside the subject against a simple background, it usually works well.
Will it work on repeating patterns like brick or tiles?
Partially. Models reproduce the pattern but often break its rhythm — a course of bricks that does not line up, or a tile grid that shifts. Small selections help, because the model has more surrounding pattern to align with and less to invent.
Is it obvious to other people that something was removed?
Only if you leave one of the standard tells: a ghost outline, an orphaned shadow, a blurry patch, or broken pattern rhythm. Check those four and most removals are undetectable.

Ready to put this into practice?

Create with Kitana using the tool that fits this guide.

Clean up a photo

Ready to try it yourself?

Download Kitana and create your first AI photo in under a minute.