Visit ComfyUI Online for ready-to-use ComfyUI environment
Blend image with mask for transparent image creation in compositing workflows, ensuring accurate transparency application.
The Image Premultiply (mtb) node is designed to blend an image with a mask, effectively applying the mask to the image to create a new image with transparency. This process, known as premultiplication, is particularly useful in compositing workflows where you need to combine images with varying levels of transparency. By using this node, you can ensure that the transparency information from the mask is accurately applied to the image, resulting in a seamless blend. This node is beneficial for tasks such as creating cutouts, applying alpha channels, and preparing images for further compositing.
The image
parameter expects an input of type IMAGE. This is the primary image to which the mask will be applied. The image should be in a format that supports transparency, such as PNG. The quality and resolution of the input image will directly affect the output.
The mask
parameter expects an input of type MASK. This mask defines the transparency levels to be applied to the image. Areas of the mask that are white will be fully opaque in the resulting image, while black areas will be fully transparent. Intermediate shades will result in varying levels of transparency.
The invert
parameter is a BOOLEAN with a default value of False. When set to True, this parameter inverts the mask before applying it to the image. This means that areas that were originally transparent will become opaque and vice versa. This can be useful if you need to quickly reverse the transparency effect of the mask.
The RGBA
output is of type IMAGE. This is the resulting image after the mask has been applied. The output image will have an alpha channel that reflects the transparency levels defined by the mask. This image can be used directly in further compositing or saved for later use.
invert
parameter if you need to quickly switch the transparency areas of your mask without creating a new mask.© Copyright 2024 RunComfy. All Rights Reserved.