Trimming the empty margins around PNGs one by one is tedious

Built!

Auto-Trim Transparent Margins removes the outer transparent margin from PNGs, and you can save PNG or ZIP files. Images stay in your browser.

Current workflow

A transparent PNG fresh out of background removal keeps the original photo's canvas, so the subject often sits small inside a lot of empty margin. When images sit side by side in a stock marketplace list, inconsistent margins make the sizes feel uneven, so people end up trimming each canvas to the subject one image at a time. Trimming right down to the subject makes thumbnails feel cramped, though, and finding a margin that looks natural in the list means judging the amount to cut by eye, every time. Leftover translucent residue from background removal makes it worse: pixels remain where you assumed there was only empty margin, throwing off where the crop should go.

Solution

Auto-Trim Transparent Margins

How to use

1. Add the transparent PNG whose margins you want to trim. 2. Press "Trim margins" and the canvas is cropped down to the area the subject occupies. You can keep a margin of 0–1,000px. 3. Check the result and save it as a PNG. Multiple images can be downloaded at once as a ZIP.

Example

- Input: a transparent PNG of a mug after background removal, 1920×1280, with wide empty margins around the subject - Result: a PNG cropped to 711×658. The default keeps zero extra margin, so the canvas shrinks to the subject's bounds. - In the stock-chain workflow, a 1920×1280 flat-lay was cropped to 1611×1207 after background removal. The resulting size depends on how much of the original frame the subject occupies.

Open tool
View details
Limits
- If a nearly invisible dot or residue remains, the crop boundary lands further out than expected. An 800×600 image with 3-pixel dots left in two corners only shrank to 773×573. In that case, re-check the background-removal result first. - Faint shadows or edges, on the other hand, may be partly cut off. - Colored backgrounds are not removed. Only the outer transparent margin is trimmed, so run an opaque background through background removal first. - Processing happens in your browser and files are never sent to a server. The checkerboard pattern in the preview only marks transparent areas and is not included in the saved file.
Cost type
Free

Sometimes this tool is not the answer. If the empty margin is itself part of the design — a composition that deliberately leaves breathing room around the subject — automatic cropping destroys that composition along with the margin. A kept margin is added equally on all four sides, so a composition that needs different margins per side has to be cropped by hand. If a crop result looks unexpected, residue left by background removal may be one cause: it gets treated as part of the subject, so the boundary lands further out. Going back to check the background-removal result is more reliable than trimming the same file again.

Support

I have this problem too · 0 people

Sign in to support or ask a question

Comments

Be the first to comment.

Additional information

Delete a post made without signing in