Morphio
Menu

Will saving as WebP remove background pixels? Mask the backdrop in GIMP

Changing the file format alone keeps the backdrop. To cut out your subject, open a still WebP in GIMP and hide the background with a layer mask. You can bring back a strand of hair or the rim of a glass without starting over. The editing takes place in GIMP on your computer.

Mask the background in GIMP

  1. 1

    Open a still image

    Keep the original WebP and work on a copy. If it contains multiple animation frames, stop here: masking one frame does not remove the background throughout the animation.

  2. 2

    Choose the area to hide

    For a solid backdrop, use Fuzzy Select on the image layer and click the background. Lower the threshold if the outline crosses into your subject. For a busy scene, skip the color selection and use a brush on the mask in the next step.

  3. 3

    Paint on the mask

    Choose Layer → Mask → Add Layer Masks and start with White (full opacity). Select the mask thumbnail. Fill a selected backdrop with black, or paint black over it. Clear any selection before brushing along the edges. White restores detail you hid; a gray brush can keep a soft shadow partly visible.

Check the edge, the gaps and the shadow

Compare the original with your masked copy. Zoom in on fine hair, space between fingers and gaps in lettering. A patch of checkerboard inside the subject means you may have hidden too much. A white fringe can disappear on a white canvas and reappear against a dark one.

Temporarily put a light layer and then a dark layer underneath the cutout. Hide these test layers before exporting. If the original already shows a checkerboard, read how WebP transparency works before changing pixels you may already want to keep.

Keep an editable copy and export the cutout

Save the masked project as XCF so you can recover details later. In GIMP, use File → Export As, give the copy a new .webp name and leave Save animation off for a still. Reopen the exported file and inspect the same edge again.

Need another format? Convert the finished WebP to PNG to keep a static cutout transparent. JPEG cannot keep transparent pixels. If an opaque background works for your destination, convert the WebP to JPG and check the color around the subject.

Cutout questions

Answers about background pixels, saved files and cost.

More edits after the cutout

Once the edges look right, keep the mask intact in your working file. See how to edit a WebP image if the cutout still needs other changes.