Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates compositing two images in a container with relative positioning for dynamic layouts.
The ImageCompositeRelativeByContainer
node is designed to facilitate the compositing of two images within a specified container, using relative positioning. This node allows you to place images A
and B
within a container based on percentage offsets, making it easier to manage dynamic layouts where the container size may vary. The primary benefit of this node is its ability to handle image placement in a flexible and intuitive manner, ensuring that the images are positioned correctly relative to the container's dimensions. This is particularly useful for creating complex image compositions where precise control over the placement of each image is required.
The container
parameter represents the canvas or background on which the images will be composited. It defines the overall dimensions within which the images will be placed. The size of the container must be large enough to accommodate the maximum dimensions of the images being composited. If the container is smaller than the largest image, an error will be raised.
The images_a
parameter is the first set of images to be composited. These images will be placed within the container based on the specified relative offsets. The dimensions of these images are used to calculate their placement within the container.
The images_b
parameter is the second set of images to be composited. Similar to images_a
, these images will be placed within the container based on the specified relative offsets. The dimensions of these images are also used to calculate their placement within the container.
The images_a_x
parameter specifies the horizontal offset for images_a
as a percentage of the container's width. This determines how far from the left edge of the container the images will be placed. The value should be a float between 0.0 and 1.0, where 0.0 represents the left edge and 1.0 represents the right edge.
The images_a_y
parameter specifies the vertical offset for images_a
as a percentage of the container's height. This determines how far from the top edge of the container the images will be placed. The value should be a float between 0.0 and 1.0, where 0.0 represents the top edge and 1.0 represents the bottom edge.
The images_b_x
parameter specifies the horizontal offset for images_b
as a percentage of the container's width. This determines how far from the left edge of the container the images will be placed. The value should be a float between 0.0 and 1.0, where 0.0 represents the left edge and 1.0 represents the right edge.
The images_b_y
parameter specifies the vertical offset for images_b
as a percentage of the container's height. This determines how far from the top edge of the container the images will be placed. The value should be a float between 0.0 and 1.0, where 0.0 represents the top edge and 1.0 represents the bottom edge.
The background
parameter determines which image set (images_a
or images_b
) will be used as the background layer in the compositing process. This affects the layering order of the images when they are combined.
The method
parameter specifies the compositing method to be used. This could include various blending or overlay techniques to achieve the desired visual effect when combining the images.
The composited_image
parameter is the final output of the node, representing the combined image created by compositing images_a
and images_b
within the specified container. This image will reflect the relative positioning and compositing method applied to the input images.
images_a_x
, images_a_y
, images_b_x
, and images_b_y
parameters to achieve flexible and dynamic image placements.background
and method
settings to achieve various visual effects and layering orders.images_a_x
, images_a_y
, images_b_x
, and images_b_y
parameters are set to values between 0.0 and 1.0.© Copyright 2024 RunComfy. All Rights Reserved.