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

# 合并图像Alpha（JoinImageWithAlpha）

<div class="node-meta"><code>JoinImageWithAlpha</code><span>image/compositing</span><span>角色：图像处理</span></div>

此节点专为合成操作设计，具体用于将图像与其对应的 Alpha 蒙版合并，生成单一输出图像。它能够有效结合视觉内容与透明度信息，从而创建出某些区域为透明或半透明的图像。

## 参数

| 参数      | 类型         | 默认 / 范围 | 说明                     |
| ------- | ---------- | ------- | ---------------------- |
| `image` | IMAGE · 图像 | —（连线输入） | RGB 图像输入；尺寸不一致会被缩放或裁切。 |
| `alpha` | MASK · 遮罩  | —（连线输入） | 透明度遮罩。                 |

## 输出

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

## 怎么接

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

## 使用案例

属于「图像处理」类节点，向下游提供图像数据。从 `image`、`alpha` 开始填就能跑起来。典型接法：`LoadImage` → 本节点 → `VAEEncode`。输出类型是 IMAGE，只能接同类型的输入端口，颜色对不上就是接错了。

## 端口与连线示意

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

## 同类节点

[合成图像（遮罩）](/nodes/06/ImageCompositeMasked.md) · [Porter-Duff图像合成](/nodes/06/PorterDuffImageComposite.md) · [分离图像Alpha](/nodes/06/SplitImageWithAlpha.md)
