Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates seamless overlay of images with relative positioning for dynamic compositing tasks.
The ImageCompositeRelative
node is designed to facilitate the seamless combination of two images within a specified container, using relative positioning. This node allows you to overlay one image on top of another based on percentage offsets, making it highly flexible for dynamic image compositing tasks. By leveraging relative coordinates, you can easily adjust the placement of images without worrying about exact pixel values, which is particularly useful for creating responsive designs or when working with images of varying sizes. The node ensures that the container is appropriately sized to accommodate the largest dimensions of the input images, preventing any overflow or clipping issues. This makes it an essential tool for AI artists looking to create complex image compositions with precision and ease.
The container
parameter represents the base canvas on which the images will be composited. It defines the overall dimensions and serves as the backdrop for the composite operation. The container must be large enough to fit the largest of the input images to avoid any clipping. There are no specific minimum or maximum values, but it should be appropriately sized to accommodate the input images.
The images_a
parameter is the first image or set of images to be composited. This image will be placed on the container based on the relative coordinates provided. The size and content of images_a
will directly impact the final composite image.
The images_b
parameter is the second image or set of images to be composited. Similar to images_a
, this image will be placed on the container based on the relative coordinates provided. The size and content of images_b
will also directly impact the final composite image.
The images_a_x
parameter specifies the horizontal offset for images_a
as a percentage of the container's width. This allows for flexible positioning of the image within the container. The value should be between 0.0 (left edge) and 1.0 (right edge), with a default value typically around 0.5 for centering.
The images_a_y
parameter specifies the vertical offset for images_a
as a percentage of the container's height. This allows for flexible positioning of the image within the container. The value should be between 0.0 (top edge) and 1.0 (bottom edge), with a default value typically around 0.5 for centering.
The images_b_x
parameter specifies the horizontal offset for images_b
as a percentage of the container's width. This allows for flexible positioning of the image within the container. The value should be between 0.0 (left edge) and 1.0 (right edge), with a default value typically around 0.5 for centering.
The images_b_y
parameter specifies the vertical offset for images_b
as a percentage of the container's height. This allows for flexible positioning of the image within the container. The value should be between 0.0 (top edge) and 1.0 (bottom edge), with a default value typically around 0.5 for centering.
The background
parameter determines which image will serve as the base layer in the composite operation. It can be set to either "images_a" or "images_b", indicating which image should be in the background. This choice affects the final appearance of the composite image, especially in areas where the images overlap.
The method
parameter specifies the compositing method to be used. This could involve different blending or overlay techniques to achieve the desired visual effect. The exact options and their effects will depend on the implementation details of the node.
The composite_image
parameter is the final output of the node, representing the combined image after the compositing operation. This image will reflect the relative positioning and blending of images_a
and images_b
within the specified container. The output is typically in the form of a tensor or image object that can be further processed or saved.
background
settings to achieve various visual effects.method
for blending to match the desired artistic outcome.© Copyright 2024 RunComfy. All Rights Reserved.