crop_sprite
Crop a sprite to specified dimensions by setting left, top, width, and height. Optionally save to a new path or overwrite the source file.
Instructions
Crop a sprite to given bounds
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Source sprite file | |
| x | Yes | Left edge | |
| y | Yes | Top edge | |
| width | Yes | Crop width | |
| height | Yes | Crop height | |
| savePath | No | Path to save (defaults to overwrite source) |