Split Image Grid JK๐
Chop a grid back into individual tiles
- image
- images
If you generate grids - four heads in a 2ร2, nine poses in a 3ร3 - you eventually want the individual cells back. Split Image Grid JK is the reverse of Make Image Grid JK: it takes one tiled image and slices it into separate tiles, returned as an image batch you can feed to per-tile processes like an upscaler or a face-fix pass.
How it works
You give it the grid image and one number: the count along a side. grid_side is a toggle - rows or columns - and grid_side_num is how many of that side your grid has. Tell it the grid is 2 rows and it derives the columns from the image geometry (2ร3, 2ร2, whatever fits), slices each cell, and concatenates the results into an IMAGE batch, one image per tile.
The crop_excess toggle is the safety valve. Grids are rarely pixel-perfect: a 2ร3 grid built from odd-sized tiles leaves a sliver of leftover pixels at the edge. With crop_excess on (the default) it crops those few stray pixels so the math divides evenly. With it off, an unevenly divisible image raises an error telling you the exact dimensions that would work - which is a deliberate choice so you notice the mismatch instead of silently losing content.
The node was substantially hardened in the pack's v2.2.3 update: guaranteed minimum row/column counts (no more divide-by-zero), boundary checks so crops never exceed the image, and graceful fallbacks if a crop fails. Old versions could blow up on weird grids; current ones mostly don't.
Inputs and outputs
image- the grid to split.grid_side- rows vs columns.grid_side_num- the count of that side. Minimum 1.crop_excess- crop the remainder (on) or error on uneven grids (off).images- the tiles as anIMAGEbatch.
Installing it
Ships in ComfyUI-JakeUpgrade:
- ComfyUI Manager โ search "JakeUpgrade" โ install โ restart.
- Or:
cd ComfyUI/custom_nodes
git clone https://github.com/jakechai/ComfyUI-JakeUpgrade
cd ComfyUI-JakeUpgrade
pip install -r requirements.txt
Windows portable: run install.bat or ../../../python_embeded/python.exe -s -m pip install -r requirements.txt.
Common issues
- Wrong side count. Set
grid_side_numto the number of rows or columns, not the total tile count. A 2ร3 grid needs2with rows selected or3with columns selected - not 6. - Tiles come out wrong-shaped. If your grid has an aspect ratio that doesn't split into the count you gave,
crop_excesstrims the edge slivers to force divisibility. That's usually what you want; if a pixel or two of content matters, resize the grid first or flipcrop_excessoff to get a loud error instead of a silent trim. - It returns a batch, not a list of nodes. Tiles come out as one
IMAGEwire. Feed that into batch-aware nodes (upscalers, batch save). If you need each tile as a separate value on its own wire, this isn't the node for that.
The natural loop: generate a grid, split it, upscale or refine each tile individually, then Make Image Grid JK reassembles the improved grid. That split-process-rejoin pattern is where this node shines.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | โ | |
| grid_side | BOOLEAN | true | โ |
| grid_side_num | INT | 11โ8192 | โ |
| crop_excess | BOOLEAN | true | โ |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| images | IMAGE | โ |