slice_sheet
Split grid-arranged sprite sheets into separate PNG frames. Use it when an image model returns a 2x2 animation grid instead of individual frames.
Instructions
把排成网格的 sprite sheet 切成单帧 PNG。
让生图模型画"4 帧动画"时它会摆成 2x2 网格而不是 4 张图, 用本工具切开。
参数: image_path / image_base64: 同其它图片工具 rows, cols: 网格行列数(二者都给) frame_width, frame_height: 单帧像素尺寸(与 rows+cols 二选一) trim: 是否把每帧裁到非透明/非背景的外接框(默认 True)
返回: 各帧 PNG 的本机路径
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cols | No | ||
| rows | No | ||
| trim | No | ||
| image_path | No | ||
| frame_width | No | ||
| frame_height | No | ||
| image_base64 | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| paths | No | ||
| frames | No | ||
| warnings | No | ||
| error_code | No |