Trim transparent image margins
Open Trim transparent image margins on Happytails.ai. This view has the same page content and links, with explicit tool capabilities. Read the processing notes before using a tool.
Tool capabilities
{
"id": "transparent-image-trim",
"category": "image-tools",
"built": true,
"requirements": "Files stay in this browser. Use still PNG, JPEG or WebP images, up to 20 MiB per file, 40 MiB combined and 16 million decoded pixels combined. Outputs total at most 100 MiB. Processing stops after 30 seconds. Source metadata and color profiles are not copied.",
"implementation": {
"fields": [
{
"key": "padding",
"label": "Transparent padding in pixels",
"value": 0,
"type": "number",
"min": 0,
"max": 512,
"step": 1
}
],
"registrationFamily": "raster-image-studio",
"files": true,
"input": false,
"multiple": false,
"accept": ".png,.jpg,.jpeg,.webp",
"maxFileBytes": 20971520,
"deferImagePreview": true,
"note": "Files stay in this browser. Use still PNG, JPEG or WebP images, up to 20 MiB per file, 40 MiB combined and 16 million decoded pixels combined. Outputs total at most 100 MiB. Processing stops after 30 seconds. Source metadata and color profiles are not copied.",
"experience": {
"automatic": false,
"single": false,
"inputMaxLength": 1000000,
"inputMode": "text",
"label": "Your text",
"placeholder": "Type or paste your input…",
"help": "Up to 1,000,000 characters. Review the settings before running.",
"helpParts": [
"Up to 1,000,000 characters.",
"Review the settings before running."
],
"action": null
},
"mode": "explicit",
"interactive": false
},
"execution": "Browser interface",
"api": null,
"browser_agent": {
"supported": true,
"name": "run_current_tool",
"discovery": "WebMCP on the human page in a supporting browser",
"verification": "See audit/API-AUDIT.md; availability is not verification"
}
}Page guide
Remove empty space around your image without cutting off faint pixels. Add transparent padding if you need it.
How to use Trim transparent image margins
- Choose an image with transparency.
- Set the transparent padding around the retained content.
- Run the tool and download the trimmed PNG and crop report.
Useful next steps
Only completely empty margins
The crop box includes every pixel whose alpha is not zero. Even a barely visible pixel remains. Transparent areas inside the crop box stay in place.
An empty image stays empty
If every source pixel is transparent, the tool returns a transparent pixel and marks the image as empty in its report. Padding applies to nonempty images.