> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-recommend-assets-api.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ImageGrid - ComfyUI Built-in Node Documentation

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

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/ImageGrid/zh.md)

图像网格节点将多张图像组合成一个有序的网格或拼贴画。它接收一个图像列表，并将它们排列到指定数量的列中，调整每张图像的大小以适配定义的单元格尺寸，并可在图像之间添加可选的内边距。最终输出是一张包含所有输入图像、按网格布局排列的新图像。

## 输入参数

| 参数名           | 数据类型  | 必填 | 取值范围      | 描述                           |
| ------------- | ----- | -- | --------- | ---------------------------- |
| `images`      | IMAGE | 是  | -         | 要排列到网格中的图像列表。节点至少需要一张图像才能工作。 |
| `columns`     | INT   | 否  | 1 - 20    | 网格中的列数（默认值：4）。               |
| `cell_width`  | INT   | 否  | 32 - 2048 | 网格中每个单元格的宽度，单位为像素（默认值：256）。  |
| `cell_height` | INT   | 否  | 32 - 2048 | 网格中每个单元格的高度，单位为像素（默认值：256）。  |
| `padding`     | INT   | 否  | 0 - 50    | 网格中图像之间的内边距大小，单位为像素（默认值：4）。  |

## 输出结果

| 输出名称    | 数据类型  | 描述                     |
| ------- | ----- | ---------------------- |
| `image` | IMAGE | 包含所有输入图像并按网格排列的单一输出图像。 |
