Mask the background in GIMP
- 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
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
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.
Hide the light and dark test layers before exporting. Otherwise their color can show through the cutout and become part of the exported image.
The mask hides areas of the working layer. Keep the original file and save the project separately; a flattened export alone will not let you paint back hidden detail.
GIMP is a free desktop editor. The mask steps above use that editor; there is no cutout uploader or paid background-removal offer on this page.
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.