Mie Image Grid ๐
Lay a batch of images out as one contact-sheet grid
- images
- grid
MieImageGrid takes a batch of images and tiles them into a single grid image - a contact sheet. Instead of scrolling through twelve separate previews, you get one picture with all twelve laid out in rows and columns. It's the fastest way to eyeball a whole batch at a glance.
It's part of ComfyUI-MieNodes (ComfyUI_MieNodes), MieMieeeee's utility pack, under ๐ Loop.
Why you'd reach for it
Comparison is the killer use. When you've generated a batch of seed variations, or stepped a parameter across a range, or run the same prompt through a loop, what you actually want is to see them side by side and judge. A grid does that in one image you can screenshot, save, or post. It's also the clean way to summarize an iterative run: process N things in a loop, collect the outputs, and drop them into one grid at the end so the result is a single legible artifact rather than a pile of files.
That's why it sits in the Loop category - it's the natural "show me everything I just made" cap on a batch or a loop. But like the rest of these, it works fine on any IMAGE batch, loop or not.
How it works
Three inputs, one image out. It arranges the images batch into a grid with a fixed number of columns (cols), adding rows as needed to fit them all, and puts a pad gap of blank pixels between cells so they don't smear together. Twelve images at cols = 4 gives you a 4ร3 grid; at cols = 3, a 3ร4. The output is a single composited IMAGE you can preview or save like any other.
The inputs and outputs that matter
images(IMAGE, required) - the batch to tile.cols(INT, default 2, range 1โ64) - how many columns. Rows fill automatically. This is the main knob: pick a column count that makes the aspect ratio of the finished sheet reasonable.pad(INT, default 4, range 0โ128) - pixels of spacing between cells.0butts them edge to edge; a few pixels reads cleaner. Bump it up for a framed, gallery look.grid(IMAGE, output) - the assembled sheet. Wire into a preview or a save node.
Installing it
ComfyUI Manager โ search ComfyUI-MieNodes โ install โ restart. Or:
cd ComfyUI/custom_nodes
git clone https://github.com/MieMieeeee/ComfyUI-MieNodes
then restart. No model download. Nodes appear under ๐ MieNodes.
Common issues & troubleshooting
A huge batch makes a huge image. Forty 1024px frames in a grid is a very large canvas - it eats memory and can be slow to save or preview. For big batches, raise cols to keep the sheet from getting absurdly tall, or downscale the images before gridding.
Mismatched image sizes. Grids assume a regular layout, so if your batch mixes resolutions the result can look ragged or the node may resize to fit. Feed it same-size images (resize upstream if needed) for a clean sheet.
You wanted the images kept separate. This composites them into one image on purpose - you can't pull the individuals back out of the grid. Keep the original batch around if you still need the frames, and use MieImageSelectFrame to pick individuals out of it.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | โ | |
| cols | INT | 21โ64 | โ |
| pad | INT | 40โ128 | โ |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| grid | IMAGE | โ |