fixmint
EN

How to remove an unwanted object from a photo

Paint over what you want gone, and the tool fills the gap with what probably lay behind it, using the pixels around the spot as its clue. In the object remover you drop a photo, brush over a stranger, a cable or a sign, and a moment after you lift your finger the gap is filled. Nothing is uploaded: the model downloads to your browser once and runs there.

Remove object from photoSomething unwanted in the photoDo it free

What happens when you paint

Think of mending a torn corner of a print by hand: look at the sky or the wall next to the hole and carry it across. The tool does the same, by guessing. The word for it is inpainting: a model fills a masked area of a picture with content that fits what surrounds it. Your brush strokes are the mask.

The model is MI-GAN, made by Picsart AI Research and released under the MIT licence. The first time you use the tool the browser fetches it together with the runtime that runs it, about 39 MB in total. After that both are cached and the tool works offline.

Two details decide how good the result is.

  • The model sees a crop, not the whole photo. It looks at the area you painted plus a margin around it, scaled down to at most 512 pixels across. It never sees the rest of the picture, so it cannot know that the lamp post continues behind a person standing far away. It can only continue what is near the gap.
  • Your photo keeps its full size. The filled patch is scaled back up and blended into the full-resolution photo. Only the area you painted, plus a thin soft edge so the join does not show, changes. Everything else stays as it was. A very large painted area is filled at lower detail, because more of the photo has to fit into those 512 pixels.

What fills well, and what does not

The result is always a guess, and some guesses are easy.

Works wellWorks badly
Overhead wires against skyA large object that fills much of the frame
A person far away on a beach, a lawn or a pavementA face or hands you want to look natural
A bin, a sign, a bottle on a plain tableTiled floors, brick courses and fences, where lines have to continue exactly
Dust, a spot on a wall, a blemish on skinText or a logo over a busy background

The pattern is simple: the less the missing part contains, the more believable the guess. Sky, grass, water, a painted wall and a blurred background give the model plenty to copy. A crowd, a shop window or a patterned shirt gives it nothing to copy, so it makes something up. Look at the result at full size before you download.

How to get a clean result

  1. Crop first if the object is near an edge. If the thing you dislike sits at the border of the picture, cropping removes it with no guessing at all, and one photo cut for every feed shape shows what each crop would lose.
  2. Paint a little past the object's edge. The tool widens your painted area slightly, but a visible halo of the old object usually means the brush stopped right on its outline.
  3. Include the shadow and the reflection. A shadow is part of the object. If the person goes and their shadow stays, the picture looks wrong. The same goes for a reflection in a window or a puddle: paint it as well, in its own stroke if it is far from the object.
  4. Take one object at a time. The fill starts shortly after you lift your finger. Strokes made before that pause ends are filled together, and the model then looks at one crop covering all of them. Two objects on opposite sides of the photo make that crop large, and a large crop means less detail. Paint one, wait for the fill, then the next.
  5. Undo what looks wrong. Undo steps back one removal at a time, Reset returns to the original, and Hold to see original shows the first photo for as long as you press it. Then try the spot again with a smaller brush.

The file you get back

Download is greyed out for a moment after each edit and becomes active once the file has been encoded, so you never save a half-finished picture. A PNG, WebP or GIF comes back as a PNG; a JPG or other photo comes back as a JPG at quality 92. The name is your file's name with -cleaned added, for example beach-cleaned.jpg. If a photo is too large for your device, the tool keeps a reduced copy and the page tells you the new size.

When not to use it: hiding something

Removing an object and hiding information are different jobs. If the point is that nobody should read a name, a number plate or a face, do not paint over it here. The fill is a guess drawn from nearby pixels, so a trace of what was there, such as a brightness, a colour or the shape of a character, can remain. For privacy a solid box is the certain choice: the redaction tool replaces the pixels with a flat box and leaves nothing to recover. How to redact a screenshot so the text cannot come back explains why blur and pixelation fall short.

The opposite caution applies too. The filled area is invented, not recovered. Do not use it to change a document, evidence or a news photograph, or to pass off an edit as a record of what was there.

If the whole backdrop is the problem

A large painted area is where the fill is weakest. To lose everything behind a person or a product, remove the background instead and keep this tool for the smaller things.

How to do it

  1. Open the object remover and drop a JPG, PNG or WebP.
  2. Set the brush size with the slider, then paint over the object and its shadow.
  3. Lift your finger and wait for the fill. The first time, the model downloads first.
  4. Check the result, use Undo if it is wrong, and paint the next object.
  5. Download the photo when the button turns on.

A cleaned photo with a clear foreground and background can also become a moving 3D photo.

Know someone with the same problem? Send them this article.

Comments

    No comments yet. Be the first.

    Your rating (optional)
    0 / 300

    Your email is never shown or kept.

    Cover of Digital Workflow ToolkitDigital Workflow Toolkit

    Recipes, templates and patterns for chaining small file jobs (convert, rename, compress, merge) into workflows that run the same way every time.

    $19.00Get it on Gumroad