ComfyUI > Nodes > Allor Plugin > ImageCompositeRelative

ComfyUI Node: ImageCompositeRelative

Class Name

ImageCompositeRelative

Category
image/composite
Author
Nourepide (Account age: 2900days)
Extension
Allor Plugin
Latest Updated
2024-05-22
Github Stars
0.2K

How to Install Allor Plugin

Install this extension via the ComfyUI Manager by searching for Allor Plugin
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Allor Plugin 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

ImageCompositeRelative Description

Facilitates seamless overlay of images with relative positioning for dynamic compositing tasks.

ImageCompositeRelative:

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.

ImageCompositeRelative Input Parameters:

container

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.

images_a

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.

images_b

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.

images_a_x

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.

images_a_y

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.

images_b_x

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.

images_b_y

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.

background

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.

method

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.

ImageCompositeRelative Output Parameters:

composite_image

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.

ImageCompositeRelative Usage Tips:

  • Ensure that the container is large enough to fit the largest input image to avoid clipping.
  • Use relative offsets (0.0 to 1.0) for flexible and responsive image positioning.
  • Experiment with different background settings to achieve various visual effects.
  • Choose the appropriate method for blending to match the desired artistic outcome.

ImageCompositeRelative Common Errors and Solutions:

ValueError: Container can't be smaller than max width or height of images.

  • Explanation: This error occurs when the container size is smaller than the largest dimensions of the input images.
  • Solution: Ensure that the container dimensions are large enough to accommodate the largest input image. Adjust the container size accordingly.

IndexError: list index out of range

  • Explanation: This error may occur if the input images or container are not properly defined or indexed.
  • Solution: Verify that all input images and the container are correctly specified and accessible. Check for any indexing issues in the input parameters.

ImageCompositeRelative Related Nodes

Go back to the extension to check out more related nodes.
Allor Plugin
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.