AI image models

A mask wide enough for the shadow

From

Why does my replacement object look pasted into an otherwise convincing still?

The new object often needs room for its contact shadow, its reflection and the small area where it overlaps the tabletop. Inspect those dependencies in the source image and include them in the edit mask when they should change.

A cream mug casts a long shadow with a loop of sunlight inside the handle’s shadow.
Follow the shadow to the right of the mug. If you replace the handle, this small loop of light may need editing too.Illustrated with Seedream 5.5 · Jude Norvell Studio
Image study
Silhouette mask
Silhouette and shadow
The second mask includes the old handle shadow. A narrow mask can leave the previous cup’s footprint behind.

Trace the broken relationship

Imagine replacing a ceramic cup with a glass tumbler. The old handle casts a narrow shadow to the right. If the mask follows only the outside of the cup, that shadow can survive as a floating hook. Mark every visible consequence of the handle before painting the replacement region.

Protect a reliable boundary

In the Diffusers inpainting convention, white marks the area to repaint and black the area to preserve. Keep a recognizable part of the tabletop outside the mask so you can compare grain, perspective and colour across the join. Inspect the result in grayscale as well as colour to catch a shadow with the wrong density.

Studio exercise

Mask a cup twice, first to its silhouette, then to its silhouette plus shadow. Compare both edits at the old handle location and at the base of the new glass.

Sources