ComfyUI  >  Nodes  >  Allor Plugin >  ImageContainerInheritanceSum

ComfyUI Node: ImageContainerInheritanceSum

Class Name

ImageContainerInheritanceSum

Category
image/container
Author
Nourepide (Account age: 2900 days)
Extension
Allor Plugin
Latest Updated
5/22/2024
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

ImageContainerInheritanceSum Description

Efficiently combine and sum image dimensions for creating composite images with integrity and visual quality.

ImageContainerInheritanceSum:

The ImageContainerInheritanceSum node is designed to facilitate the combination of multiple images by summing their dimensions. This node is particularly useful when you need to create a composite image that encompasses the total width and height of the input images. By leveraging this node, you can efficiently manage and manipulate image data, ensuring that the resulting composite image maintains the integrity and visual quality of the original images. This node is ideal for tasks that require the aggregation of image dimensions, such as creating panoramic views or combining multiple image layers into a single cohesive output.

ImageContainerInheritanceSum Input Parameters:

images_a

This parameter represents the first set of images to be combined. Each image in this set will contribute to the final composite image. The dimensions of these images will be summed with those of images_b based on the specified container_size_type.

images_b

This parameter represents the second set of images to be combined. Similar to images_a, each image in this set will be used to determine the final dimensions of the composite image. The combination method depends on the container_size_type.

red

This parameter specifies the red color component for the background of the composite image. It accepts values ranging from 0 to 255, with a default value of 0.

green

This parameter specifies the green color component for the background of the composite image. It accepts values ranging from 0 to 255, with a default value of 0.

blue

This parameter specifies the blue color component for the background of the composite image. It accepts values ranging from 0 to 255, with a default value of 0.

alpha

This parameter controls the transparency level of the background color. It accepts values ranging from 0.0 (completely transparent) to 1.0 (completely opaque), with a default value of 1.0.

container_size_type

This parameter determines how the dimensions of the input images are combined. It can take the following values:

  • sum: Sums both the width and height of the input images.
  • sum_width: Sums only the width of the input images, ensuring the heights are equal.
  • sum_height: Sums only the height of the input images, ensuring the widths are equal.

method

This parameter specifies the method used to combine the images. It can take the following values:

  • single: Creates a single composite image.
  • for_each_pair: Creates a composite image for each pair of images from images_a and images_b.

ImageContainerInheritanceSum Output Parameters:

images

This output parameter provides the resulting composite image(s) based on the specified input parameters and combination method. The output is a tensor containing the combined image data, which can be used for further processing or visualization.

ImageContainerInheritanceSum Usage Tips:

  • To create a panoramic image, use the sum_width option for container_size_type and ensure that the heights of the input images are equal.
  • For creating a vertical collage, use the sum_height option for container_size_type and ensure that the widths of the input images are equal.
  • Adjust the red, green, blue, and alpha parameters to set a custom background color for the composite image, which can help in distinguishing the combined images.

ImageContainerInheritanceSum Common Errors and Solutions:

ValueError: Heights of images do not match for sum_width

  • Explanation: This error occurs when the container_size_type is set to sum_width, but the heights of the input images in images_a and images_b are not equal.
  • Solution: Ensure that all images in images_a and images_b have the same height when using the sum_width option.

ValueError: Widths of images do not match for sum_height

  • Explanation: This error occurs when the container_size_type is set to sum_height, but the widths of the input images in images_a and images_b are not equal.
  • Solution: Ensure that all images in images_a and images_b have the same width when using the sum_height option.

Invalid container_size_type value

  • Explanation: This error occurs when an invalid value is provided for the container_size_type parameter.
  • Solution: Use one of the valid options for container_size_type: sum, sum_width, or sum_height.

ImageContainerInheritanceSum 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.