Visit ComfyUI Online for ready-to-use ComfyUI environment
Combine image with alpha mask for transparency control in compositing, ensuring accurate overlay effects.
The JoinImageWithAlpha
node is designed to combine an image with a separate alpha mask, effectively adding transparency information to the image. This is particularly useful in compositing workflows where you need to control the transparency of different parts of an image. By merging the image and the alpha mask, you can create complex visual effects and seamless overlays. This node ensures that the alpha mask is correctly resized and inverted to match the dimensions of the image, providing a smooth and accurate compositing result.
The image
parameter expects an input of type IMAGE
. This is the main image to which you want to add transparency information. The image should be a tensor representing the pixel data, typically in RGB format. The quality and resolution of the final output will depend on the quality of this input image.
The alpha
parameter expects an input of type MASK
. This is the alpha mask that defines the transparency levels for the corresponding image. The mask should be a tensor where each value represents the transparency level of the corresponding pixel in the image. The node will automatically resize and invert this mask to ensure it matches the dimensions of the input image.
The output is of type IMAGE
. This is the resulting image with the alpha channel added. The output image will have four channels (RGBA), where the fourth channel represents the transparency information derived from the alpha mask. This allows for more complex and visually appealing compositions.
IMAGE
for image and MASK
for alpha).© Copyright 2024 RunComfy. All Rights Reserved.