Nodes/ComfyUI-SimpleChat/Image Grid (Batch)
ComfyUI Node

Image Grid (Batch)

Stitch a batch into a contact sheet when you don't need labels

By Moeblack·Created 9 months ago·Updated 7 months ago· 8
Image Grid (Batch)
  • images
  • image
columns4
padding0
pad_colorblack

ComfyUI hands you image batches everywhere, and a batch is great for compute and awful for looking at. SimpleChatImageGrid is the no-frills version of this pack's grid maker: it takes an IMAGE batch and stitches it into a single contact-sheet image, no labels, no title, no fuss. If you've seen the pack's XY Plot (Labels) node this is its stripped-down sibling - same stitcher, minus the axis text.

The three knobs

Only three inputs, and you'll mostly touch two of them:

  • images - the batch (required).
  • columns - how many images across (default 4, up to 64). Rows are computed from the batch size.
  • padding - pixels between cells (default 0), with pad_color black or white to fill the gutters.

Output is a single image - one IMAGE tensor, which means it survives SaveImage, PreviewImage, or feeding into an upscaler in one go. A batch of 12 at 4 columns becomes a tidy 4×3 sheet.

When you'd reach for it

Any time you've got a flat batch and just want eyeballs on all of it. A 4-image prompt variation run, a LoRA strength sweep, a grid of seeds. The moment you need to know which cell is which, you've outgrown it and should grab XY Plot (Labels) instead - this node draws no text whatsoever, so you're left counting cells by hand.

It's also a decent pre-view step before SaveImage in an LLM-batched workflow: your SimpleChatAnimaPromptXYMatrix → sampler chain spits out a batch, and this node collapses it for a quick sanity look before you commit to saving sixty files.

Installing it

Same install as every node in the pack - it's one repo:

cd ComfyUI/custom_nodes
git clone https://github.com/Moeblack/ComfyUI-SimpleChat

Restart ComfyUI, or use Manager and search "ComfyUI-SimpleChat". The pack's only dependency is aiohttp; this particular node is pure tensor slicing, so it'd run in a vacuum if you could extract it.

Gotchas

The batch must be a proper 4D IMAGE tensor - ComfyUI's IMAGE shape (B,H,W,C). If an upstream node hands it a list of batches (an OUTPUT_IS_LIST port), it throws a ValueError rather than flattening for you - its sibling XY Plot (Labels) handles that case, this one doesn't. And note pad_color is strictly black or white; if you want a mid-gray gutter or rounded cell corners, this isn't the tool. Keep padding at 0 for a tight sheet or the grid starts eating horizontal space fast at high columns.

CategorySimpleChat/Utils

Inputs (4)

NameTypeDefaultDescription
imagesIMAGE
columnsINT41–64
paddingINT00–256
pad_colorCOMBOblack2 options: black, white

Outputs (1)

NameTypeDescription
imageIMAGE