Menu

1 / 2

Removing product photo backgrounds in the browser without a model

DEV Community: webdev·Claudia Landy·about 10 hours ago
#QVyAT6fU
#devtowebdev#devto#dev#white#pixels
Reading 0:00
15s threshold

Most "remove the background" features ship a segmentation model to the browser or call an API. For one specific job, cleaning up product photos for an interior mood board, we got away with neither. Here is what we did, and where it falls apart.

The constraint: retail product photos are boring in a useful way

When someone drops a sofa or a lamp onto a mood board, the image almost always comes from a retailer's listing. Those photos share a trait: the object sits on a white or near-white studio background that touches every edge of the frame.

That means you do not need to understand what a sofa is.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.