Trim
photopea_trimTrim empty borders from the active document by removing transparent pixels or corner-matching colors. Useful after background removal or before exporting icons.
Instructions
Trim empty borders from the active document: transparent pixels, or pixels matching the top-left or bottom-right corner color. Useful after removing a background or before exporting an icon.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "photopea_trim"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| basis | No | What counts as empty border | transparent |