Eraslino

Eraslino › Guides

How to remove a shadow from a photo (and why erasing it is usually wrong)

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

Short answer: to remove a shadow that falls across something you want to keep, brighten it, don't erase it. A shadow does not hide the surface; it only darkens it, so the detail is still there. In our test, brightening the shadow by the right amount brought the error down to 6.3 (0–255 scale), while erasing it with an AI fill made it 33.6, slightly worse than leaving the shadow alone (32.2).

Erase a shadow only when the object casting it is being erased too, or when the surface under it is plain enough that invented texture won't show.

Object removers are often advertised for shadows as well. The test below shows why that is usually the wrong tool, and four mistakes that make shadow fixes look fake.

The test

We cast a hard shadow, the kind a lamp post or a pole makes in sunlight, across a public-domain photo of a weathered table (1280 × 853). Inside the shadow every pixel is 55% as bright as the original, with a 3 px soft edge. We know the exact original, so we can score each fix.

Eraslino with the table photo; a long pole shadow with a round top is covered by red selection strokes
The shadow selected in the eraser: one stroke along the pole and one dab on the round top (86,418 pixels, 7.9% of the photo).
Open the shadow example in the eraser →
FixErrorDetail
Nothing (shadow left in)32.2—
Erase with Smart fill (MI-GAN)33.60.24
Erase with Quick patch (Telea)35.20.03
Brighten with a hard-edged selection, × 1/0.559.2—
Brighten following the soft edge, × 1/0.556.3—

Error: average absolute difference from the original over the selection, lower is closer (86,418 pixels as the eraser selects them; the two brightening rows use our own drawing of the same strokes, 85,179 pixels). Detail: fine texture relative to the original (1.00 = same). Erasing took 0.9 s (smart, model cached) and 0.1 s (quick) in Chrome on an Apple M4 Pro; the brightening was computed by us from the same file.

Four crops of the table: with the shadow, after erasing with smart fill, after brightening by 1/0.55, and the original
Erasing (top right) throws away the real grain and knots under the shadow and invents new grain, with a dark seam along one side. Brightening (bottom left) keeps the real wood and is close to the original (bottom right).

Mistake 1: erasing a shadow instead of lifting it

Under a shadow the knots, cracks and grain are all still in the photo, just darker. An eraser deletes them and invents new ones, which is why both erase results scored worse than doing nothing. Brightening keeps every real detail; the residual error of 6.3 comes mostly from JPEG compression, which is amplified when dark pixels are scaled up.

Mistake 2: guessing the brightness instead of measuring it

The right factor is the ratio between the same material in light and in shadow. Pick a spot of the same surface just outside the shadow and one just inside it, read their brightness in any editor's colour picker, and divide. In our photo the shadow is 0.55 of the lit wood, so the shadow needs to be multiplied by 1 ÷ 0.55 ≈ 1.82 (an exposure increase of about 0.86 stop, since 20.86 ≈ 1.82). Eyeballing it usually leaves a light or dark ghost of the shadow behind.

Mistake 3: ignoring the soft edge

Real shadows have a penumbra, a band where they fade out. Brightening with a hard-edged selection over-brightens that band on one side and leaves a dark rim on the other: error 9.2 instead of 6.3 in our test, even with the exact factor. Feather the selection by about the width of the soft edge, or paint the adjustment with a soft brush.

Mistake 4: removing an object but keeping its shadow, or the reverse

If you erase a person or a sign, erase their shadow in the same selection, otherwise a shadow of nothing remains. In that case erasing is right, because the object is gone and there is nothing real to recover. See the object-size test for how large an area the fill can handle.

When erasing a shadow is the right call

How to brighten a shadow

Eraslino only erases; it does not have an exposure brush. Any photo editor with a local adjustment does this: select the shadow, feather the selection by the width of its soft edge, and raise exposure by the measured amount (or use Levels/Curves to multiply the brightness by the ratio). Then use Eraslino only for what brightening cannot fix, such as a clipped core or the object that cast the shadow.

Sources

Keep going