Action Image
Slice Image Grid
Slices an image into multiple tiles using a grid pattern. Each tile is saved as a separate file.
Node IDSliceImageGridAction
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
Source File Path sourceFilePath | file_picker | Yes | — | The full path to the source image to slice (e.g., "C:/temp/spritesheet.png"). |
Output Directory outputDirectory | file_picker | Yes | — | The directory where sliced tiles will be saved. |
Columns columns | integer min 1 | Yes | 4 | The number of columns in the grid. |
Rows rows | integer min 1 | Yes | 4 | The number of rows in the grid. |
Output Format outputFormat | enum | Yes | png | The image format for the output tiles. |
Naming Pattern namingPattern | string | Yes | tile_{row}_{col} | Pattern for naming tiles. Use {row}, {col}, {index} as placeholders (e.g., "tile_{row}_{col}" or "sprite_{index}"). |
Start Index startIndex | integer min 0 | No | 0 | Starting index for {index} placeholder (useful for zero-based or one-based indexing). |
Create Directory createDirectory | boolean | No | true | If true, creates the output directory if it doesn't exist. |
Overwrite Existing overwrite | boolean | No | false | If true, overwrites existing files in the output directory. |
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
Execute input0 | object | Yes | Triggers the image slicing operation. |
Outputs
| Output | Type | Identifier | Description |
|---|---|---|---|
Tile Paths output0 | list | tile_paths | An array of file paths for all generated tiles. |
Tile Count output1 | integer | tile_count | The total number of tiles created. |