How the eraser works

MagicPhotoEraser removes objects from photos using AI that runs entirely in your browser. Here's what actually happens when you click "Erase" — and why the rest of your photo stays perfectly sharp.

1. Brush over what you want gone 2. We crop only that region — and run the AI on it 3. Drop it back into your full-res photo, sharp
The key idea

Why your photo stays sharp

Inpainting AI models are trained to work at a small, fixed size — around 512×512 pixels. The naïve approach is to shrink your entire photo down to that size, erase, and scale the result back up. That works, but it softens the whole image — which is exactly why the free tier of upload-based tools looks blurry.

We take a different path that's only practical because everything runs locally:

We crop a padded box around just the region you brushed, resize only that crop to the model's size, inpaint it, and then composite the result back into your full-resolution original with feathered edges.

The 95% of the image you never touched is left completely untouched — pixel-for-pixel identical to your original. Only the small patch you erased is model-processed. That's the entire difference between "free tool that softens your photo" and "free tool that keeps it sharp," and it's the reason we can give away full-resolution results that other tools charge for.

Private by architecture, not by promise

"Your photos never leave your device" isn't a privacy policy you have to trust — it's how the app is built.

Nothing is uploaded

Your photo is decoded, processed, and saved entirely inside your browser tab. There's no server to receive it. Open your Network tab during an erase — you'll see no outbound request carrying image data.

The AI runs on your hardware

We use onnxruntime-web to run the inpainting model with WebGPU when your device supports it, falling back to WASM everywhere else. The compute happens on your GPU/CPU — not a rented cloud GPU.

It works offline

The first erase downloads the model once and caches it on your device. After that, the eraser keeps working with no internet connection at all.

Erasing, step by step

  1. 1

    Open your photo

    Drag it in, paste it, or pick a file. It loads straight into your browser.

  2. 2

    Brush over the object

    Paint over whatever you want gone — a person, a sign, a watermark, a stray object.

  3. 3

    Click Erase

    The on-device AI reconstructs what was behind the object, processing only the region you brushed.

  4. 4

    Download

    Save the full-resolution result — no watermark, EXIF stripped, completely free.