ComfyUI > Nodes > DJZ-Nodes > Border Composite Alpha

ComfyUI Node: Border Composite Alpha

Class Name

BorderCompositeAlpha

Category
image/processing
Author
DriftJohnson (Account age: 4052days)
Extension
DJZ-Nodes
Latest Updated
2025-04-25
Github Stars
0.04K

How to Install DJZ-Nodes

Install this extension via the ComfyUI Manager by searching for DJZ-Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter DJZ-Nodes in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Border Composite Alpha Description

Automate border overlay with alpha channel for image enhancement and thematic compositions.

Border Composite Alpha:

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.

Border Composite Alpha Input Parameters:

bottom_images

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.

border_image

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.

Border Composite Alpha Output Parameters:

IMAGE

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.

Border Composite Alpha Usage Tips:

  • Ensure that your bottom_images are properly normalized to a range of [0, 1] to achieve optimal blending with the border.
  • Choose a border image with a suitable alpha channel to ensure that the transparency effects are applied correctly, enhancing the visual appeal of the final output.
  • If you have a specific theme or style in mind, consider organizing your border images in the /borders/ directory to easily access and apply them as needed.

Border Composite Alpha Common Errors and Solutions:

Error loading border image: <error_message>

  • Explanation: This error occurs when the node is unable to load the specified border image, possibly due to a missing file or incorrect file path.
  • Solution: Ensure that the border image file exists in the /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 layer must be in BHWC format with 3 channels

  • Explanation: This error indicates that the input bottom_images do not have the expected shape or channel configuration.
  • Solution: Verify that your input images are in the correct 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. Ensure that the images are properly normalized to a range of [0, 1].

Border Composite Alpha Related Nodes

Go back to the extension to check out more related nodes.
DJZ-Nodes
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

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.