ComfyUI > Nodes > antrobots ComfyUI Nodepack > Alpha Composite

ComfyUI Node: Alpha Composite

Class Name

composite

Category
antrobots-ComfyUI-nodepack/image-handling
Author
antrobot (Account age: 3193days)
Extension
antrobots ComfyUI Nodepack
Latest Updated
2025-04-02
Github Stars
0.02K

How to Install antrobots ComfyUI Nodepack

Install this extension via the ComfyUI Manager by searching for antrobots ComfyUI Nodepack
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter antrobots ComfyUI Nodepack 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

Alpha Composite Description

Blend images seamlessly with masks and offsets for artistic compositions.

Alpha Composite:

The composite node is designed to blend two images or latent representations together, allowing for creative and seamless integration of visual elements. This node is particularly useful for artists looking to overlay images with precision, using various compositing techniques to achieve the desired visual effect. By leveraging masks and offsets, the node provides flexibility in how images are combined, enabling the creation of complex and layered compositions. The primary goal of this node is to facilitate the merging of visual data in a way that maintains the integrity and aesthetic of the original images, while also allowing for artistic manipulation and enhancement.

Alpha Composite Input Parameters:

image_source

The image_source parameter represents the primary image that you want to overlay onto another image. It is crucial for defining the visual content that will be composited. This parameter accepts an image tensor and serves as the main element in the compositing process.

image_dest

The image_dest parameter is the target image onto which the image_source will be composited. It acts as the background or base layer in the compositing operation. This parameter also accepts an image tensor and is essential for determining the final appearance of the composite image.

mask_source

The mask_source parameter is an optional mask that can be applied to the image_source. It defines the transparency and blending areas of the source image, allowing for selective compositing. This parameter accepts a mask tensor and can significantly impact the visual outcome by controlling which parts of the source image are visible.

mask_dest

The mask_dest parameter is an optional mask for the image_dest. Similar to mask_source, it controls the transparency and blending of the destination image. This parameter accepts a mask tensor and is useful for refining the compositing process by adjusting the visibility of the destination image.

x_offset

The x_offset parameter specifies the horizontal displacement of the image_source relative to the image_dest. It allows you to position the source image precisely on the destination image. The default value is 0, with a minimum and maximum value defined by the system's constraints.

y_offset

The y_offset parameter determines the vertical displacement of the image_source relative to the image_dest. Like x_offset, it provides control over the positioning of the source image. The default value is 0, with a minimum and maximum value defined by the system's constraints.

Alpha Composite Output Parameters:

image_out

The image_out parameter is the resulting image after the compositing process. It represents the final visual output, combining the image_source and image_dest according to the specified masks and offsets. This output is crucial for evaluating the success of the compositing operation and serves as the basis for further artistic adjustments or final presentation.

Alpha Composite Usage Tips:

  • Experiment with different mask_source and mask_dest configurations to achieve unique blending effects and enhance the visual depth of your compositions.
  • Utilize x_offset and y_offset to creatively position elements within your composite, allowing for dynamic and engaging visual arrangements.

Alpha Composite Common Errors and Solutions:

Image size mismatch

  • Explanation: The source and destination images have different dimensions, causing a mismatch during compositing.
  • Solution: Ensure that both images have the same dimensions or use a resizing function to adjust the size of one image to match the other.

Invalid mask dimensions

  • Explanation: The mask dimensions do not match the corresponding image dimensions, leading to errors in the compositing process.
  • Solution: Verify that the mask dimensions align with the image dimensions and adjust the mask size if necessary.

Offset out of bounds

  • Explanation: The specified x_offset or y_offset exceeds the allowable range, causing the source image to be positioned outside the destination image.
  • Solution: Adjust the offset values to ensure they fall within the permissible range, allowing the source image to be correctly positioned on the destination image.

Alpha Composite Related Nodes

Go back to the extension to check out more related nodes.
antrobots ComfyUI Nodepack
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.