ComfyUI > Nodes > ComfyUI_XISER_Nodes > Merge Pack Images

ComfyUI Node: Merge Pack Images

Class Name

XIS_MergePackImages

Category
XISER_Nodes/Data_Processing
Author
grinlau18 (Account age: 944days)
Extension
ComfyUI_XISER_Nodes
Latest Updated
2026-03-20
Github Stars
0.03K

How to Install ComfyUI_XISER_Nodes

Install this extension via the ComfyUI Manager by searching for ComfyUI_XISER_Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_XISER_Nodes 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

Merge Pack Images Description

Combines up to five image packs into one, ensuring RGBA format and consistent dimensions.

Merge Pack Images:

The XIS_MergePackImages node is designed to streamline the process of combining multiple image packs into a single cohesive output. This node is particularly beneficial for AI artists who work with multiple image sources and need to consolidate them efficiently. By merging up to five different image packs, it simplifies workflows and reduces the complexity of handling multiple image inputs separately. The node ensures that all images are in the correct format and dimensions, specifically requiring them to be in the RGBA format with a shape of [H, W, 4]. This ensures consistency and compatibility with subsequent processing steps. The primary goal of this node is to facilitate the seamless integration of various image inputs, making it an essential tool for managing complex image processing tasks.

Merge Pack Images Input Parameters:

pack_images_1

This parameter represents the first optional input pack of images. It allows you to provide a list of images in the form of torch.Tensor objects. Each image must be in the RGBA format with a shape of [H, W, 4]. This input is crucial as it serves as one of the potential sources for the merged output. There are no specific minimum or maximum values, but the input must be a list of valid images.

pack_images_2

Similar to pack_images_1, this parameter is an optional input for a second pack of images. It functions identically, requiring images to be in the RGBA format and structured as torch.Tensor objects. This input provides additional flexibility by allowing you to merge images from multiple sources. The same format and type requirements apply.

pack_images_3

This parameter serves as an optional third input pack of images. It follows the same requirements as the previous inputs, accepting a list of torch.Tensor images in the RGBA format. This input further extends the node's capability to handle multiple image sources, ensuring a comprehensive merging process.

pack_images_4

As an optional fourth input, this parameter allows for the inclusion of another pack of images. It adheres to the same format and type requirements, ensuring that all images are compatible for merging. This input is useful for projects involving numerous image sources.

pack_images_5

This parameter is the fifth optional input for an image pack. It completes the node's ability to merge up to five different image sources. Like the other inputs, it requires images to be in the RGBA format and structured as torch.Tensor objects. This input maximizes the node's flexibility and utility in complex image processing tasks.

Merge Pack Images Output Parameters:

image_list

The image_list output parameter provides a list of all the merged images. This output is crucial as it consolidates all the input images into a single list, making it easier to manage and process them in subsequent steps. The images are maintained in their original format and dimensions, ensuring consistency and quality.

image_batch

The image_batch output parameter offers a single batch of the merged images. This output is particularly useful for batch processing tasks, where you need to handle all images as a single unit. It simplifies the workflow by providing a unified batch, ready for further processing or analysis.

Merge Pack Images Usage Tips:

  • Ensure that all input images are in the correct RGBA format with a shape of [H, W, 4] to avoid errors during the merging process.
  • Utilize all five input parameters if you have multiple image sources to maximize the node's merging capabilities and streamline your workflow.
  • Regularly check the logs for any warnings or errors to ensure that all images are being processed correctly and efficiently.

Merge Pack Images Common Errors and Solutions:

Invalid image type in pack_images_<port_idx>: expected list of torch.Tensor

  • Explanation: This error occurs when the input pack contains images that are not in the torch.Tensor format.
  • Solution: Ensure that all images in the input pack are converted to torch.Tensor objects before passing them to the node.

Invalid shape for image <j> in pack_images_<port_idx>: expected [H, W, 4], got <img.shape>

  • Explanation: This error indicates that an image in the input pack does not have the required RGBA format with a shape of [H, W, 4].
  • Solution: Verify that all images are in the correct format and dimensions before inputting them into the node.

Merge Pack Images - No valid pack_images inputs provided, returning empty outputs

  • Explanation: This message appears when none of the input parameters contain valid image packs.
  • Solution: Check that at least one input parameter is provided with a valid list of images in the correct format.

Merge Pack Images Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_XISER_Nodes
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.

Merge Pack Images