Visit ComfyUI Online for ready-to-use ComfyUI environment
Combine two images with optional masking for precise concatenation and composite image creation.
The image concat mask
node is designed to seamlessly combine two images side by side, with the option to apply a mask to the second image. This node is particularly useful for creating composite images where you want to blend or juxtapose two different visuals while maintaining control over the visibility of the second image through masking. The primary benefit of this node is its ability to handle image concatenation with precision, allowing for the resizing of the second image to match the height of the first, ensuring a cohesive final output. Additionally, the node can generate a mask that differentiates between the two images, which can be further customized if a specific mask is provided. This functionality is essential for artists looking to create complex image compositions with ease and flexibility.
This parameter represents the first image that will be used in the concatenation process. It serves as the base image to which the second image will be aligned. The dimensions of this image determine the height of the final composite image, ensuring that the second image is resized accordingly to match this height.
This optional parameter is the second image that will be concatenated to the right of the first image. If provided, this image will be resized to match the height of the first image, ensuring a seamless side-by-side composition. If not provided, a white image of the same dimensions as the first image will be used instead.
This optional parameter allows you to provide a custom mask that will be applied to the second image. The mask controls the visibility of the second image in the final composition, with areas of the mask set to 1 being fully visible and areas set to 0 being hidden. If no mask is provided, a default mask is created where the right half of the composite image is fully visible.
This output parameter contains the final composite image, which is a combination of the first and second images placed side by side. The output is a tensor representation of the combined image, ready for further processing or display.
This output parameter provides the mask used in the composition process. It is a tensor that indicates the visibility of the second image in the final composite, allowing for further manipulation or analysis if needed.
RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.