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 > Create Image Batch (PixNodes)

ComfyUI Node: Create Image Batch (PixNodes)

Class Name

Pix_CreateImageBatch

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

Create Image Batch (PixNodes) Description

Facilitates batch creation and processing of images with automated resizing and alignment for AI artists in PixNodes framework.

Create Image Batch (PixNodes):

The Pix_CreateImageBatch node is designed to facilitate the creation of image batches from a list of images, allowing for efficient processing and manipulation within the PixNodes framework. This node is particularly useful for AI artists who need to handle multiple images simultaneously, as it automates the process of batch creation by resizing and aligning images according to specified parameters. The node ensures that images are processed consistently, maintaining their quality and integrity while accommodating various dimensions and background colors. By leveraging this node, you can streamline your workflow, reduce manual effort, and focus on the creative aspects of your projects.

Create Image Batch (PixNodes) Input Parameters:

batch_width

The batch_width parameter specifies the width of the image batch in pixels. It determines the horizontal dimension of the output batch, ensuring that all images are resized or padded to fit this width. The minimum value is 64, the maximum is 4096, and the default is 1080. Adjusting this parameter affects the overall size and aspect ratio of the batch, which can be crucial for maintaining consistency across different images.

batch_height

The batch_height parameter defines the height of the image batch in pixels. Similar to batch_width, it sets the vertical dimension of the output batch, ensuring uniformity in height across all images. The minimum value is 64, the maximum is 4096, and the default is 1080. This parameter is essential for controlling the vertical space each image occupies, impacting the final appearance of the batch.

method

The method parameter determines how images are resized or aligned within the batch. It offers three options: "fill," "fit," and "stretch." "Fill" resizes images to cover the entire batch area, potentially cropping parts of the image. "Fit" adjusts images to fit within the batch dimensions without cropping, maintaining the original aspect ratio. "Stretch" resizes images to exactly match the batch dimensions, which may distort the image. Choosing the appropriate method affects the visual outcome and can enhance or detract from the artistic intent.

bg_color

The bg_color parameter sets the background color for the batch, specified as a string in hexadecimal format (e.g., "#000000" for black). This color fills any empty space around images that do not fully occupy the batch dimensions, ensuring a cohesive and visually appealing background. The default value is "#000000." Selecting a suitable background color can enhance the overall aesthetic and ensure that images blend seamlessly with the batch.

image_data

The image_data parameter is a hidden field that stores the state of the image list from the frontend. It is a string representation of the image data, with a default value of "[]". This parameter is crucial for maintaining the integrity of the image list during processing, ensuring that all images are accounted for and correctly included in the batch.

Create Image Batch (PixNodes) Output Parameters:

image_batch

The image_batch output parameter represents the final batch of images, processed and combined according to the specified input parameters. This output is crucial for further manipulation or analysis within the PixNodes framework, providing a consistent and uniform set of images ready for subsequent operations.

image_list

The image_list output parameter contains the original list of images, preserved in their initial state before any processing or resizing. This output is important for reference or comparison purposes, allowing you to access the unaltered images alongside the processed batch.

Create Image Batch (PixNodes) Usage Tips:

  • Ensure that the batch_width and batch_height parameters are set to values that accommodate the largest image in your list to avoid excessive cropping or distortion.
  • Use the method parameter wisely to maintain the artistic integrity of your images; "fit" is often a safe choice to preserve aspect ratios.
  • Choose a bg_color that complements your images and enhances the overall visual appeal of the batch.

Create Image Batch (PixNodes) Common Errors and Solutions:

CreateImageBatch: 无法解析图像数据

  • Explanation: This error indicates that the node was unable to parse the provided image data, possibly due to incorrect formatting or corrupted data.
  • Solution: Verify that the image data is correctly formatted and accessible. Ensure that the image paths are valid and that the images are not corrupted.

CreateImageBatch: 颜色解析失败

  • Explanation: This error occurs when the specified background color cannot be parsed, often due to an incorrect format.
  • Solution: Check that the bg_color is specified in a valid hexadecimal format (e.g., "#FFFFFF"). Correct any formatting errors and try again.

CreateImageBatch: 警告,找不到文件

  • Explanation: This warning indicates that the node could not locate a specified image file, possibly due to an incorrect file path or missing file.
  • Solution: Ensure that all file paths are correct and that the files exist in the specified locations. Double-check the directory structure and file names for accuracy.

Create Image Batch (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.

Create Image Batch (PixNodes)