Nodes/Comfyroll Studio/πŸ› οΈ CR Batch Images From List
ComfyUI Node Runs on cloud

πŸ› οΈ CR Batch Images From List

Turn an image list back into a single batch

By Suzie1Β·Created 3 years agoΒ·Updated 2 years agoΒ· 1,291
πŸ› οΈ CR Batch Images From List
  • image_list
  • image_batch
  • show_help

This is a glue node, and if you've ever hit a maddening type mismatch in a batch workflow, it might be the exact glue you were missing. ComfyUI distinguishes between an image list (many images, processed one at a time) and an image batch (many images stacked into one tensor, processed together). Loads of nodes want a batch. Loads of loaders emit a list. CR Batch Images From List is the converter that bridges them: list in, batch out.

How it works

A list in ComfyUI means the graph runs once per element. A batch means one tensor with a batch dimension. This node collects the images arriving as a list and stacks them into a single batched IMAGE tensor. That's it - no resizing model, no GPU work, just a reshape of how the data is packaged so the next node sees one batch instead of a stream of singles.

Why you'd need it: you loaded a folder as a list to process each file, and now you want to save them as one grid, feed them to an animation/video node, or run something that only accepts a batch. Or you built a list of generated variations and want them side by side. This is the node that makes that connection legal.

The inputs and outputs that matter

  • image_list (IMAGE, arriving as a list) - the images to stack. Wire the list output of a loader (like CR Load Image List Plus) or any node producing an image list here.

Outputs:

  • image_batch (IMAGE) - the stacked batch. Feed it to whatever wanted a batch.
  • show_help - the wiki-link string, ignore it.

Installing it

Part of Comfyroll Studio (Suzie1 / RockOfFire), a large, long-established utility pack. Install through ComfyUI Manager (search "Comfyroll Studio," install, restart) or clone it:

cd ComfyUI/custom_nodes
git clone https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes.git

then restart. No models, no dependencies.

Common issues

The big one is baked into what a batch is: the images have to be the same dimensions to stack. A batch tensor can't hold a 512x768 and a 1024x1024 image at once. If you feed mixed sizes, expect an error - resize them to a common size first (a resize node in the list, before this one).

Second, this only helps if the upstream data really is a list. If you've already got a batch and you're getting errors, this isn't your fix - you may instead need the opposite direction (splitting a batch into a list). Getting list-vs-batch backwards is the single most common source of confusion in these workflows, so when a type error appears, ask which of the two the node actually wants. If Comfyroll won't load at startup with a traceback, reinstall the pack cleanly through Manager.

Category🧩 Comfyroll Studio/✨ Essential/πŸ“œ List/πŸ› οΈ Utils

Inputs (1)

NameTypeDefaultDescription
image_listIMAGEβ€”

Outputs (2)

NameTypeDescription
image_batchIMAGEβ€”
show_helpSTRINGβ€”