ComfyUI Node
TS Auto Tile Size
Work out the best tile width and height for an image from a tile count, honouring padding and a divisor.
TS Auto Tile Size
- image
- tile_width
- tile_height
◄tile_count▾►
◄padding64►
◄divide_by8►
◄width512►
◄height512►
CategoryTS/Image/Tiles
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| tile_count | COMBO | Total number of tiles to split the image into. The grid is chosen to best match the image aspect ratio. | |
| padding | INT | 640–512 | Overlap in pixels added between neighbouring tiles to hide seams. |
| divide_by | INT | 81–512 | Rounds each tile dimension to a multiple of this value (e.g. 8 for VAE-friendly sizes). |
| imageopt | IMAGE | Optional image; its dimensions drive the tile size. Overrides width/height when connected. | |
| widthopt | INT | 51264–8192 | Fallback image width, used when no image is connected. |
| heightopt | INT | 51264–8192 | Fallback image height, used when no image is connected. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| tile_width | INT | — |
| tile_height | INT | — |