ComfyUI > Nodes > ComfyUI-Addoor > Image Concat with Mask

ComfyUI Node: Image Concat with Mask

Class Name

image concat mask

Category
🌻 Addoor/image
Author
ADDOOR (Account age: 2884days)
Extension
ComfyUI-Addoor
Latest Updated
2025-01-24
Github Stars
0.03K

How to Install ComfyUI-Addoor

Install this extension via the ComfyUI Manager by searching for ComfyUI-Addoor
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Addoor in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Image Concat with Mask Description

Combine two images with optional masking for precise concatenation and composite image creation.

Image Concat with Mask:

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.

Image Concat with Mask Input Parameters:

image1

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.

image2

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.

mask

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.

Image Concat with Mask Output Parameters:

processed_images

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.

masks

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.

Image Concat with Mask Usage Tips:

  • To ensure a smooth composition, make sure that the first image has the desired height, as the second image will be resized to match this dimension.
  • Utilize the mask parameter to creatively control the blending of the second image, allowing for unique visual effects by adjusting the mask's transparency levels.

Image Concat with Mask Common Errors and Solutions:

Image size mismatch

  • Explanation: This error occurs when the dimensions of the images are not compatible for concatenation.
  • Solution: Ensure that the first image has the desired height, as the second image will be resized to match this height automatically.

Mask dimension error

  • Explanation: This error arises when the provided mask does not match the dimensions of the second image.
  • Solution: Resize the mask to match the dimensions of the second image after it has been resized to match the height of the first image.

Image Concat with Mask Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Addoor
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

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.