Nodes/comfyui-timesaver/TS Auto Tile Size
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.

By AlexYez·Created 2 years ago·Updated 3 days ago· 11
TS Auto Tile Size
  • image
  • tile_width
  • tile_height
tile_count
padding64
divide_by8
width512
height512
CategoryTS/Image/Tiles

Inputs (6)

NameTypeDefaultDescription
tile_countCOMBOTotal number of tiles to split the image into. The grid is chosen to best match the image aspect ratio.
paddingINT640–512Overlap in pixels added between neighbouring tiles to hide seams.
divide_byINT81–512Rounds each tile dimension to a multiple of this value (e.g. 8 for VAE-friendly sizes).
imageoptIMAGEOptional image; its dimensions drive the tile size. Overrides width/height when connected.
widthoptINT51264–8192Fallback image width, used when no image is connected.
heightoptINT51264–8192Fallback image height, used when no image is connected.

Outputs (2)

NameTypeDescription
tile_widthINT
tile_heightINT