pixel_slice_spritesheet
Split a spritesheet PNG into individual frame images by specifying frame dimensions. Outputs numbered frame files, skipping empty frames to streamline editing game assets.
Instructions
Split a spritesheet PNG into individual frame canvases — the way to bring existing game assets in for editing or re-animation.
Tiles are read left-to-right, top-to-bottom on a strict frame_width x frame_height grid (partial tiles at the right/bottom edges are ignored) and written to out_dir as '_f00.png', '_f01.png', .... Fully transparent tiles are skipped unless skip_empty=false. Returns JSON {"source", "out_dir", "frames_written", "skipped_empty", "frame_paths"}. On failure returns "Error: ...".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |