Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > Comfyui-PixNodes > Image Batch Compose (PixNodes)

ComfyUI Node: Image Batch Compose (PixNodes)

Class Name

Pix_ImageBatchCompose

Category
PixNodes
Author
pixixai (Account age: 512days)
Extension
Comfyui-PixNodes
Latest Updated
2026-05-27
Github Stars
0.02K

How to Install Comfyui-PixNodes

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

Run ComfyUI Online

Image Batch Compose (PixNodes) Description

Streamline combining multiple dynamic images into cohesive batches with resizing, alignment, and batch processing capabilities.

Image Batch Compose (PixNodes):

The Pix_ImageBatchCompose node is designed to streamline the process of combining multiple dynamic image inputs into a single cohesive batch. This node is particularly beneficial for AI artists who need to manage and manipulate multiple images simultaneously, as it offers a seamless way to resize and align images according to specified parameters. By merging the functionalities of the ToImageBatch and ImageListToBatch nodes, Pix_ImageBatchCompose simplifies the workflow, allowing for efficient batch processing of images. It supports various modes of resizing, such as "Fit," "Fill," and "Stretch," and provides options for alignment and background color, ensuring that the final output meets the desired aesthetic and technical requirements. This node is essential for tasks that require consistent image dimensions and alignment, making it a valuable tool for creating uniform image batches in creative projects.

Image Batch Compose (PixNodes) Input Parameters:

mode

The mode parameter determines how the images will be resized to fit the target dimensions. It offers three options: "Fit," "Fill," and "Stretch." "Fit" resizes the image to fit within the target dimensions while maintaining the aspect ratio, potentially leaving empty spaces. "Fill" scales the image to cover the entire target area, possibly cropping parts of the image. "Stretch" adjusts the image to exactly match the target dimensions, which may distort the image. The default value is "Fill," and choosing the appropriate mode affects the visual outcome of the batch composition.

alignment

The alignment parameter specifies how the images will be aligned within the target dimensions after resizing. Options include "Top Left," "Top," "Top Right," "Left," "Center," "Right," "Bottom Left," "Bottom," and "Bottom Right." This parameter is crucial when using the "Fit" mode, as it determines where the image will be placed within the available space. The default alignment is "Center," which centers the image within the target dimensions.

background_color

The background_color parameter allows you to set the background color for areas not covered by the image when using the "Fit" mode. It accepts a string representing a color in hexadecimal format, such as "#FFFFFF" for white. This parameter ensures that any empty spaces are filled with a consistent color, enhancing the visual appeal of the final batch. The default value is "#FFFFFF."

size

The size parameter defines the target dimensions for the image batch in the format "Width x Height" (e.g., "512x512"). If left empty, the node will use the dimensions of the first image in the batch as the target size. This parameter is essential for ensuring that all images in the batch have uniform dimensions, which is particularly important for tasks that require consistent image sizes.

image_1

The image_1 parameter is an optional dynamic input that allows you to provide the first image for the batch composition. This parameter can be repeated with incrementing numbers (e.g., image_2, image_3, etc.) to include multiple images in the batch. Each image input should be in a compatible format, and the node will process all provided images according to the specified parameters.

Image Batch Compose (PixNodes) Output Parameters:

image_batch

The image_batch output parameter provides the final composed batch of images. This output is a single tensor containing all the processed images, resized and aligned according to the specified parameters. The image_batch is crucial for further processing or analysis, as it ensures that all images are uniformly formatted and ready for subsequent tasks. This output allows for efficient handling of multiple images in a single operation, streamlining workflows that involve batch image processing.

Image Batch Compose (PixNodes) Usage Tips:

  • To maintain the aspect ratio of images while resizing, use the "Fit" mode and choose an appropriate alignment to ensure the images are positioned correctly within the target dimensions.
  • When working with images that have transparent backgrounds, consider setting the background_color to a color that complements the images to avoid unwanted visual artifacts.
  • If you need to process a large number of images, ensure that the size parameter is set to a reasonable value to prevent excessive memory usage and potential performance issues.

Image Batch Compose (PixNodes) Common Errors and Solutions:

No images provided

  • Explanation: This error occurs when no images are supplied to the node for processing.
  • Solution: Ensure that at least one image is provided as input using the image_1 parameter or additional dynamic image inputs.

Invalid size format

  • Explanation: The size parameter is not in the correct "Width x Height" format.
  • Solution: Verify that the size parameter is specified correctly, using the format "Width x Height" (e.g., "512x512"), or leave it empty to use the dimensions of the first image.

Unsupported color format

  • Explanation: The background_color parameter is not in a valid hexadecimal color format.
  • Solution: Ensure that the background_color is specified as a valid hexadecimal color code, such as "#FFFFFF" for white.

Image Batch Compose (PixNodes) Related Nodes

Go back to the extension to check out more related nodes.
Comfyui-PixNodes
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Image Batch Compose (PixNodes)