Eraslino

Eraslino › Guides

How do watermark removers work? What they actually do to the pixels

By Eraslino · Published 2026-11-15 · Updated 2026-11-15

Short answer: almost every watermark remover throws away the pixels under the mark and paints new ones that fit the surroundings. That is called inpainting. It does not "lift" the watermark off; it replaces the area with a guess.

The one exception is mathematical: if you know exactly how the watermark was blended in (its shape, colour and opacity), you can reverse the blend and get close to the real pixels back. In our test that cut the error from 27–39 (inpainting) to 4.6 (reversing the blend), on a 0–255 scale.

We tested this on one photo where we know exactly what is under the watermark, because we put it there. Below are the four ways software can deal with a visible watermark, what each one does to the pixels, and the numbers from the test.

The test photo

We took a public-domain photo of Moraine Lake (Wikimedia Commons, see sources), scaled it to 1280 × 960, and stamped a white "© EXAMPLE PHOTO" across the shoreline at 45% opacity (alpha 115 of 255). The untouched photo is our answer key. We then painted a selection over the watermark (85,929 pixels) and let Eraslino fill it with each of its two methods.

Eraslino with the lake photo loaded; the © EXAMPLE PHOTO watermark is covered by a red selection stroke
The selection as the eraser receives it: one brush stroke, a little taller than the letters. Everything under the red is about to be thrown away.
Open the watermark example in the eraser →

Method 1: pull the edges inward (diffusion)

The oldest family of inpainting fills a hole from its border inward, each new pixel a weighted average of the known pixels next to it. Eraslino's "Quick patch" is one of these: Alexandru Telea's fast-marching method (2004), ported from OpenCV's INPAINT_TELEA. It is instant and needs no model, but it cannot invent texture, so anything wider than a few pixels turns into smooth streaks.

Method 2: copy patches from elsewhere in the photo

Patch-based methods search the rest of the image for small squares that match the edge of the hole and copy them in. PatchMatch (Barnes et al., SIGGRAPH 2009) made that search fast enough for interactive editing such as hole filling. It reproduces texture well when the photo contains more of the same texture. Eraslino does not use this method, so we have no numbers for it here.

Method 3: generate the missing area with a trained model

Learned inpainting models have seen millions of photos and generate pixels that are plausible for the scene. Eraslino's "Smart fill" runs MI-GAN (Sargsyan et al., ICCV 2023), a small model trained on the Places2 scene dataset, inside your browser. It produces texture instead of streaks, but the texture is invented: it is what a lake shore usually looks like, not what this one looked like.

Four crops of the shoreline: with the watermark, after smart fill, after quick patch, and the original
Top to bottom: the watermarked photo, smart fill, quick patch, the real photo. Smart fill draws a plausible shoreline in the wrong place; quick patch smears the trees and water into horizontal bands.

Method 4: reverse the blend (only when the watermark is known)

A semi-transparent watermark is a blend. For each pixel, the photo you see is

seen = (1 − α) × original + α × watermark colour

so if you know α and the watermark colour at every pixel, you can solve for the original:

original = (seen − α × watermark colour) ÷ (1 − α)

We know both, because we made the watermark. Reversing it pixel by pixel brought back the real shoreline. The small error that remains comes from JPEG compression of the watermarked file: dividing by (1 − 0.45) multiplies that compression noise by about 1.8.

Three crops of the shoreline: watermarked, blend reversed with the known opacity, and the original
Reversing the blend with the known opacity (middle) gives back the real shoreline, trees and reflection; compare the inpainted versions above.

This is also how the strongest automatic attack on stock-photo watermarks works. Dekel, Rubinstein, Liu and Freeman (Google Research, CVPR 2017) showed that when the same watermark is stamped the same way on a whole collection of images, an algorithm can estimate the watermark and its opacity from the collection and then reverse it on every image. Their suggested defence is to warp each copy of the watermark slightly at random, so no single estimate fits them all.

The numbers

Error is the mean absolute difference from the original photo over the 85,929 selected pixels, averaged over red, green and blue (0 = identical, 255 = opposite). "Detail" compares the fine texture inside the selection with the original (1.00 = as much fine detail as the real photo; lower = smoother). Timings are in Chrome on an Apple M4 Pro with the model already cached. The "reverse the blend" row is scored over our own drawing of the same stroke (85,088 pixels).

What we didErrorDetailTime
Nothing (watermark left in)31.2——
Smart fill (MI-GAN)39.10.290.9 s
Quick patch (Telea)27.20.070.1 s
Reverse the blend with the known α4.6——

Two things stand out. First, both inpainting results are about as far from the truth as leaving the watermark in. They look better, because the eye notices letters far more than it notices a slightly wrong shoreline, but the pixels are new. Second, a low error does not mean a good-looking result: quick patch scores better than smart fill here because a smooth smear is never far from the average colour, while a sharp but misplaced texture is.

What this means in practice

Is it legal to remove a watermark?

Removing a watermark from your own photo is your business. Removing one from somebody else's work is different. In the United States, 17 U.S.C. § 1202(b) prohibits intentionally removing or altering "copyright management information" without authority, and § 1202(c) defines that information to include the name of the author and of the copyright owner conveyed with the work, which is what a typical photographer's watermark carries. Violations can lead to civil remedies under § 1203. Other countries have similar rules. This is not legal advice; if in doubt, license the image or ask the owner.

Sources

Keep going