Visit ComfyUI Online for ready-to-use ComfyUI environment
Combine RGB image with mask to create RGBA image for AI artists, enabling transparent image editing and layer merging.
The LayerUtility: ImageCombineAlpha node is designed to combine an RGB image with a mask to produce an RGBA image. This node is particularly useful for AI artists who need to add transparency to their images by integrating a mask as the alpha channel. By converting the RGB image and mask into a unified RGBA format, this node allows for more complex image manipulations and compositions. The primary function of this node is to facilitate the seamless merging of image layers, enhancing the flexibility and creativity in your artwork.
The RGB_image
parameter expects an image input in RGB format. This is the base image to which the alpha channel will be added. The RGB image should be a tensor, and it can be a single image or a batch of images. The quality and resolution of the final output will depend on the input image provided.
The mask
parameter requires a mask input that will be used as the alpha channel for the RGB image. The mask should be a tensor and can be either a single-channel (grayscale) image or a batch of masks. The mask determines the transparency levels in the final RGBA image, where white areas are fully opaque and black areas are fully transparent.
The RGBA_image
output is the resulting image after combining the RGB image with the mask. This output is in RGBA format, where the alpha channel is derived from the provided mask. The RGBA image can be used for further image processing, compositing, or directly in your artwork to achieve desired transparency effects.
© Copyright 2024 RunComfy. All Rights Reserved.