How to Remove a White Background From a Product Photo in GIMP

Use a layer mask to remove a white backdrop while keeping white lettering, glossy highlights and pale product edges. Check the cutout before exporting a PNG.
Follow these steps at your own pace. Check product terms and prices directly with providers before purchasing.
Quick answer
Trace the product’s outline with Free Select, then create a layer mask from that selection. GIMP keeps everything inside the outline, including white lettering, reflections and pale plastic. The mask hides the backdrop while leaving the original pixels available for touch-ups.
Find the edge you want to keep
Take a white ceramic mug on white paper. The rim, the handle and its highlight belong to the mug. The white patch visible through the handle belongs to the backdrop. Zoom in and follow the narrow change in tone at those boundaries. Selecting all white pixels could remove parts of the glaze along with the paper. Where the edge blends completely into the paper, check another angle of the mug. If you can retake the photo, a contrasting backdrop will give you a clearer outline.
Open the photo and choose File → Save As to save a working copy as an XCF file. If a visible speck might be mistaken for a mark on the edge, clean up the dust on the product photo before judging the outline.
Build a mask around the product
- In the Layers panel, select the photo layer. Choose Tools → Selection Tools → Free Select. Keep antialiasing enabled for a smooth edge. For a hard ceramic rim, start with feathering off.
- Click along the outside edge. Space points farther apart on straight sections and closer together around curves. Follow the outside of the handle for now. Click the starting point to close the outline and press Enter to confirm.
- Choose Layer → Mask → Add Layer Masks. Select Selection, leave Invert Mask off, and click Add. Choose Select → None so your next brush strokes can reach either side of the original outline.
- Click the mask thumbnail to the right of the photo thumbnail. Choose the Paintbrush and set the foreground color to black. Paint out the backdrop inside the handle, starting in the middle and reducing the brush size as you approach the glaze. If you cut into the rim, switch the foreground to white and paint it back.
Check the cutout on a contrasting color
Add a temporary solid-color layer below the photo. Dark gray makes a leftover white fringe easy to see. At 100% zoom, work on the mask with a small black brush along the fringe. Preserve genuine rim highlights by comparing them with the original. If an opaque black line appears on the mug itself, undo that stroke and click the mask thumbnail before continuing.
Hide the test layer and check for the transparency checkerboard around the mug and inside its handle. Save the XCF with the mask intact. If the listing needs equal sides, make the product photo square without cropping it. Choose File → Export As, name the output with a .png extension and export. Reopen that PNG to inspect the corners. If the cutout is going into an SVG product sheet, embed the PNG in Inkscape before sharing the SVG.
Comments
Read or join the discussion.