> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# ImageBatch - ComfyUI Built-in Node Documentation

> Complete documentation for the ImageBatch node in ComfyUI. Learn its inputs, outputs, parameters and usage.

The `ImageBatch` node is designed for combining two images into a single batch. If the dimensions of the images do not match, it automatically rescales the second image to match the first one's dimensions before combining them.

## Inputs

| Parameter | Data Type | Description                                                                                                                                           |
| --------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| `image1`  | `IMAGE`   | The first image to be combined into the batch. It serves as the reference for the dimensions to which the second image will be adjusted if necessary. |
| `image2`  | `IMAGE`   | The second image to be combined into the batch. It is automatically rescaled to match the dimensions of the first image if they differ.               |

## Outputs

| Parameter | Data Type | Description                                                                                                 |
| --------- | --------- | ----------------------------------------------------------------------------------------------------------- |
| `image`   | `IMAGE`   | The combined batch of images, with the second image rescaled to match the first one's dimensions if needed. |
