Visit ComfyUI Online for ready-to-use ComfyUI environment
Automate border overlay with alpha channel for image enhancement and thematic compositions.
The BorderCompositeAlpha
node is designed to enhance your images by overlaying a border with an alpha channel onto a batch of images. This node is particularly useful for adding decorative or thematic borders to images, which can be beneficial in creating visually appealing compositions or thematic artwork. By utilizing alpha compositing, the node seamlessly blends the border with the underlying images, ensuring that the border's transparency is respected and integrated smoothly. This process allows for creative flexibility, enabling you to apply consistent borders across multiple images efficiently. The node's primary function is to automate the application of borders, saving you time and effort while ensuring high-quality results.
The bottom_images
parameter represents the batch of images to which the border will be applied. These images are expected to be in RGB format, with a shape of (B, H, W, 3), where B is the batch size, H is the height, W is the width, and 3 represents the RGB channels. This parameter is crucial as it serves as the base layer over which the border will be composited. The images should be normalized to a range of [0, 1] to ensure proper blending with the border.
The border_image
parameter allows you to select the specific border image to be applied from a list of available PNG files located in the /borders/
directory. This parameter is presented as a dropdown menu, making it easy to choose the desired border. The selected border image will be resized to match the dimensions of the bottom_images
to ensure a perfect fit. The border image must include an alpha channel to facilitate the compositing process, allowing for smooth integration with the base images.
The output of the BorderCompositeAlpha
node is a batch of images with the applied border, returned as a torch tensor. This output maintains the same dimensions as the input bottom_images
, ensuring that the composited images are ready for further processing or final output. The resulting images will have the border seamlessly integrated, with the alpha channel ensuring that the border's transparency is respected, providing a polished and professional appearance.
bottom_images
are properly normalized to a range of [0, 1] to achieve optimal blending with the border./borders/
directory to easily access and apply them as needed.<error_message>
/borders/
directory and that the filename is correctly specified. Check for any typos in the filename and verify that the file is in PNG format.bottom_images
do not have the expected shape or channel configuration.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.