Image Concatenate Multi(ImageConcatMulti)
This node dynamically defines the number of input ports via the `inputcount` parameter, supporting the concatenation of 2 to 1000 images.
Image Concat Multi
The Image Concatenate Multi node dynamically defines the number of input ports via the inputcount parameter, supporting the concatenation of 2 to 1000 images or masks.
The Image Concatenate Multi node is an image (and mask) concatenation tool that can connect multiple input images or masks into a single new image (or mask) along a specified direction. Its core function is to flexibly combine multiple sources to generate a single output containing all input content. The output type follows the type of the first input (image_1); other inputs are converted to match.
Node Function
This node dynamically defines the number of input ports via the inputcount parameter, supporting the concatenation of 2 to 1000 images or masks. It supports concatenation in four directions (right, down, left, up) and provides an option to control whether all inputs should be resized to match the dimensions of the first input before concatenation, ensuring size compatibility.
Node Parameter Description - Image Concatenate Multi
Connection Inputs (Inputs)
| Parameter Name | Data Type | Required | Default Value | Range/Options | Description |
|---|---|---|---|---|---|
image_1 | MATCHTYPE (IMAGE or MASK) | Yes | - | - | The first input for concatenation, serving as the starting reference. Its type (image or mask) determines the output type. |
image_2 | MULTITYPE (IMAGE or MASK) | No | - | - | The second input for concatenation. Depending on the inputcount setting, there may be more similarly named input ports (e.g., image_3, image_4, etc.). |
Control Parameters (Parameters)
| Parameter Name | Data Type | Required | Default Value | Range/Options | Description |
|---|---|---|---|---|---|
direction | COMBO | Yes | right | "right", "down", "left", "up" | Specifies the direction for concatenation: right (to the right), down (downwards), left (to the left), or up (upwards). |
inputcount | INT | Yes | 2 | 2 - 1000 (Step: 1) | Sets the total number of inputs to be concatenated, ranging from 2 to 1000. This value determines the number of dynamically generated input ports on the node. |
match_image_size | BOOLEAN | Yes | False | - | Controls whether all subsequent inputs should be resized to match the dimensions of the first input (image_1) before concatenation. Default is off (False). |
Output
| Parameter Name | Data Type | Description |
|---|---|---|
| images | MATCHTYPE (same as image_1) | The single image or mask generated after concatenation. Its type matches the type of the first input. |
Use Cases
This node is very useful when creating panoramic images or for side-by-side comparison of multiple image variants. For example, in a workflow that generates multiple stylized images, you can use this node to concatenate all outputs into a single grid image, facilitating intuitive comparison and selection of the best result. It also works with masks, allowing you to combine mask regions along a chosen direction.
Notes
Please note that when match_image_size is set to False and the input images or masks have inconsistent dimensions, the concatenation operation may not proceed as expected or may result in an error. Additionally, dynamically created input ports (e.g., image_3, image_4, etc.) will only appear on the node after the inputcount is set and the Update inputs button is clicked. The output type always follows the type of image_1 (IMAGE or MASK); other inputs are automatically converted if needed before concatenation.
Image Concatenate Multi Node Source Code Link
The Image Concatenate Multi node is from the ComfyUI-KJNodes node package.
Comments
Sign in with GitHub to join the discussion.