Visit ComfyUI Online for ready-to-use ComfyUI environment
AddAlpha node enhances RGB images with alpha channel for transparency, enabling versatile compositing and blending effects.
The AddAlpha node is designed to add an alpha channel to an RGB image, effectively converting it to an RGBA image. This node is particularly useful when you need to introduce transparency to an image, allowing for more complex compositing and blending operations. By adding an alpha channel, you can control the opacity of different parts of the image, enabling effects such as soft edges, fades, and overlays. The node offers flexibility by allowing you to specify an external alpha image or generate one based on the existing RGB image, with options to invert the alpha values if needed. This makes it a versatile tool for AI artists looking to enhance their images with transparency effects.
This parameter takes an RGB image as input. The RGB image is the base image to which the alpha channel will be added. The image should be in the format of a tensor with three color channels (Red, Green, Blue). This parameter is required for the node to function.
This optional parameter allows you to provide an external alpha image. The alpha image should be a single-channel image (grayscale) that defines the transparency levels for the corresponding pixels in the RGB image. If not provided, the node will generate an alpha channel based on the RGB image. The alpha values range from 0 (completely transparent) to 255 (completely opaque).
This optional parameter specifies the method to use when adding the alpha channel. The available options are default
and invert
. The default
method uses the provided alpha values as they are, while the invert
method inverts the alpha values, making transparent areas opaque and vice versa. The default value for this parameter is default
.
The output is an RGBA image, which is the original RGB image with an added alpha channel. The alpha channel controls the transparency of each pixel, allowing for more advanced compositing and blending operations. The output image is in the format of a tensor with four channels (Red, Green, Blue, Alpha).
invert
method to quickly switch the transparency and opacity areas, which can be useful for creating masks or special effects.Invalid image format
Alpha image dimensions do not match
Unsupported method
method
parameter.method
parameter is set to either default
or invert
.© Copyright 2024 RunComfy. All Rights Reserved.