crop_sprite
Crop a sprite to a set rectangle or current selection, or trim empty borders automatically to remove unused canvas edges.
Instructions
Crops the sprite to a rectangle, to the selection (mode='selection'), or trims empty borders (mode='auto').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| rect | No | ||
| save | No | Batch mode: write changes back to the sprite file (default true) | |
| byGrid | No | ||
| sprite | No | File path, open tab title, or sprite id. Defaults to the active sprite (live). Batch mode needs a file path. | |
| backend | No | auto (default): live Aseprite if connected, else headless batch |