Visit ComfyUI Online for ready-to-use ComfyUI environment
Merge two images into a composite image with alignment and resizing capabilities for versatile image layout creation.
The ImageConcanate
node is designed to seamlessly merge two images into a single composite image. This node is particularly useful for AI artists who want to create complex image compositions by aligning images either horizontally or vertically. The node ensures that the images are properly aligned and resized if necessary, maintaining the visual coherence of the final output. By using this node, you can easily concatenate images in various directions, making it a versatile tool for creating intricate image layouts and designs.
This parameter represents the first image to be concatenated. It serves as one of the two primary images that will be merged. The size and batch dimensions of this image will influence the final output, especially if the match_image_size
parameter is set to true.
This parameter represents the second image to be concatenated. Similar to image1
, this image will be merged with the first image based on the specified direction. The size and batch dimensions of this image will also play a crucial role in the final output.
This parameter determines the direction in which the images will be concatenated. The available options are right
, down
, left
, and up
. For example, if right
is selected, image2
will be placed to the right of image1
. This parameter allows you to control the layout of the concatenated images.
This boolean parameter specifies whether the second image should be resized to match the dimensions of the first image. If set to true, image2
will be resized to match the width and height of image1
, ensuring a seamless concatenation. If false, the images will be concatenated without resizing, which may result in misalignment if the images have different dimensions.
This optional parameter allows you to specify the shape of the first image explicitly. If provided, it will be used to resize the second image when match_image_size
is true. If not provided, the shape of image1
will be used by default.
This output parameter represents the concatenated image resulting from merging image1
and image2
based on the specified direction. The output is a single composite image that combines the two input images, aligned according to the chosen direction and resized if necessary.
match_image_size
parameter to resize the second image to match the dimensions of the first image.direction
values to achieve various layout effects, such as creating vertical or horizontal image strips.image1
and image2
do not match.image1
and image2
do not match, causing misalignment.match_image_size
parameter to true to resize image2
to match the dimensions of image1
.direction
parameter is set to an invalid value.direction
parameter is set to one of the valid options: right
, down
, left
, or up
.© Copyright 2024 RunComfy. All Rights Reserved.