> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# 组合图像批次（ImageBatch）

<div class="node-meta"><code>ImageBatch</code><span>image/batch</span><span>角色：图像处理</span><span class="star">★ 常用节点</span></div>

`ImageBatch` 节点用于将两张图像合并为一个批次。如果图像的尺寸不匹配，它会自动将第二张图像重新缩放以匹配第一张图像的尺寸，然后再进行合并。

## 参数

| 参数       | 类型         | 默认 / 范围 | 说明    |
| -------- | ---------- | ------- | ----- |
| `image1` | IMAGE · 图像 | —（连线输入） | 第一张图。 |
| `image2` | IMAGE · 图像 | —（连线输入） | 第二张图。 |

## 输出

| 输出 | 类型    | 说明 |
| -- | ----- | -- |
| 图像 | IMAGE | 图像 |

## 怎么接

- **上游**：LoadImage / VAEDecode
- **下游**：VAEEncode / SaveImage / 下一个图像节点
- **接线**：接在 LoadImage 或 VAEDecode 之后，处理结果再交给 VAEEncode（重绘）、SaveImage（出图）或下一个图像节点；这类节点可以任意串联成处理流水线。

## 使用案例

把两张图拼成一个批次（不是拼画面，是打包成 batch）。

典型用法：图生图时一次处理多张图，或者把「原图 + 生成图」放在一起交给预览节点对比。

两张图的尺寸必须一致，不一致会报错，前面要先接 `ImageScale` 统一尺寸。

## 端口与连线示意

![ImageBatch 端口与连线示意](/svg/ImageBatch.svg)

## 同类节点

[从批次获取图像](/nodes/05/ImageFromBatch.md) · [复制图像批次](/nodes/05/RepeatImageBatch.md) · [批量图像](/nodes/05/BatchImagesNode.md) · [图像去重](/nodes/05/ImageDeduplication.md) · [图像表格](/nodes/05/ImageGrid.md) · [将图块列表合并为图像](/nodes/05/ImageMergeTileList.md) · [融合图像序列](/nodes/05/MergeImageLists.md) · [重设图像批次](/nodes/05/RebatchImages.md) · [打乱图像数据集](/nodes/05/ShuffleDataset.md) · [打乱图像文本数据集](/nodes/05/ShuffleImageTextDataset.md) · [将图像拆分为图块列表](/nodes/05/SplitImageToTileList.md)
