Image Concat(ImageConcatStage)
The Image Concat node joins several ComfyTV images into one combined image, in the order you connect them.
Image Concat Stage
Description
Image Concat (class ImageConcatStage) combines multiple images into a single output image. It supports horizontal, vertical, and grid layouts, with configurable spacing and background fill. The concat order is controlled by clip_order, which is normally populated by the reorder strip in the node body. Use this node to assemble image strips, contact sheets, or grids from individual image inputs and image batches.
Inputs
clip_order
Required STRING, default empty. A JSON list of image keys in concat order. This value is driven by the reorder strip in the node body, so use the strip to arrange images in normal use. The list determines the order in which images are combined.
layout
Required COMBO, default horizontal. Controls how images are arranged:
horizontal: one row. Image heights are matched to the first image.vertical: one column. Image widths are matched to the first image.grid: images are placed in rows usingcolscolumns per row.
cols
Required INT, default 2, range 1 to 12, step 1. Sets the number of columns per row in grid layout. This setting applies to grid layout only.
gap
Required INT, default 0, range 0 to 4096, step 1. Sets the gap between images, measured in pixels relative to the first image.
outer_gap
Required BOOLEAN, default false. When enabled, the same gap is also applied around the outer edges of the composition.
bg
Required STRING, default empty. CSS fill color for gaps and empty grid space. An empty value means transparent.
batch
Optional COMFYTV_IMAGES. An image batch, such as output from Grid Split or Image Stage. Each item in the batch joins the concat.
images
Required AUTOGROW image input group. Add image inputs here as needed. Each item joins the concat, with ordering controlled by clip_order and the reorder strip.
Outputs
COMFYTV_IMAGE
Outputs a single concatenated image containing all selected inputs according to the chosen layout, gap, outer gap, and background settings. Use it wherever a COMFYTV_IMAGE input is accepted.
Usage Notes
- Use the reorder strip in the node body to arrange images. It updates
clip_order, which is the JSON list of image keys in concat order. - In horizontal layout, heights are matched to the first image. In vertical layout, widths are matched to the first image. In grid layout, use
colsto control the number of images per row. gapis measured in pixels of the first image. Enableouter_gapto add the same spacing around the outside edges.- Set
bgto a CSS color to fill gaps and unused grid cells. Leave it empty for transparent spacing. - The
batchinput is optional and can be used with batches from nodes such as Grid Split or Image Stage. Each batch item joins the concat.
Comments
Sign in with GitHub to join the discussion.