← See All Custom Node Packs

ComfyUI_essentials

1125

Run ComfyUI Easily with InstaSD

Skip the complex setup. InstaSD helps creative professionals build workflows and deploy them to the world:

  • One-click deployment
  • Any model, any node
  • Powerful GPUs for rapid iteration
Get Started

ImageBatchMultiple+

ImageBatchMultiple+ Node Documentation

Overview

The ImageBatchMultiple+ node is a part of the ComfyUI Essentials extension, which provides necessary nodes that enhance the functionality of ComfyUI. This node is designed to process and manipulate batches of images, allowing users to combine multiple images into a single batch while ensuring uniformity in dimensions through optional upscaling.

Functionality

The primary purpose of the ImageBatchMultiple+ node is to concatenate multiple images into a single batch. If the input images differ in resolution, the node can upscale smaller images to match the resolution of the first image in the batch, utilizing various interpolation methods.

Inputs

The node accepts the following inputs:

  1. image_1 (Required):

    • Type: IMAGE
    • Description: The primary image input. All other images in the batch will be adjusted to match the resolution of this image.
  2. method (Required):

    • Type: Enumeration of options ["nearest-exact", "bilinear", "area", "bicubic", "lanczos"]
    • Default: "lanczos"
    • Description: Specifies the interpolation method used if resizing of images is necessary.
  3. image_2 (Optional):

    • Type: IMAGE
    • Description: An optional second image to include in the batch.
  4. image_3 (Optional):

    • Type: IMAGE
    • Description: An optional third image to include in the batch.
  5. image_4 (Optional):

    • Type: IMAGE
    • Description: An optional fourth image to include in the batch.
  6. image_5 (Optional):

    • Type: IMAGE
    • Description: An optional fifth image to include in the batch.

Outputs

The ImageBatchMultiple+ node produces the following output:

  • IMAGE:
    • Description: This output is a single tensor containing the batch of concatenated images. All images in the batch have the same dimensions, matching those of the primary image (image_1).

Usage in ComfyUI Workflows

The ImageBatchMultiple+ node is particularly useful when working with workflows that require processing or analyzing multiple images simultaneously. In ComfyUI workflows, this node can be efficiently used in scenarios such as:

  • Batch Image Processing: When multiple images need to be processed in parallel, this node simplifies the process by creating a uniform batch of images.
  • Comparative Image Analysis: Ideal for scenarios where multiple images need to be compared or analyzed together.
  • Input for Other Nodes: When other nodes in a ComfyUI workflow require inputs as image batches, this node facilitates the preparation of such inputs.

Special Features and Considerations

  • Interpolation Methods: The node provides a variety of interpolation methods for resizing images, offering flexibility in terms of quality and processing speed. "lanczos" interpolation is used by default, known for delivering high-quality results.
  • Handling Different Resolutions: This node takes care of differences in image resolutions by automatically upscaling smaller images to match the largest one, ensuring uniformity in the batch.
  • Scalability: It efficiently handles up to five images, making it suitable for small-scale batch processing tasks. If more images are needed, multiple nodes can be chained.

Overall, the ImageBatchMultiple+ node is a valuable addition to workflows involving multiple image operations, providing users with a straightforward and effective method to handle batch processing in ComfyUI.