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

# MaskPreview - ComfyUI Built-in Node Documentation

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

MaskPreview 节点可将蒙版数据作为预览图像保存到 ComfyUI 输出目录，方便您在工作流执行期间直观检查蒙版数据。该节点会将输入蒙版转换为适合图像显示的格式，并使用可配置的文件名前缀进行保存。

## 输入

| 参数                | 描述                      | 数据类型           | 是否必填 | 范围 |
| ----------------- | ----------------------- | -------------- | ---- | -- |
| `遮罩`              | 需要预览并保存为图像的蒙版数据         | MASK           | 是    | -  |
| `filename_prefix` | 输出文件名的前缀（默认值："ComfyUI"） | STRING         | 否    | -  |
| `prompt`          | 用于元数据的提示信息（自动提供）        | PROMPT         | 否    | -  |
| `extra_pnginfo`   | 用于元数据的额外 PNG 信息（自动提供）   | EXTRA\_PNGINFO | 否    | -  |

## 输出

| 输出名称 | 描述                    | 数据类型 |
| ---- | --------------------- | ---- |
| `ui` | 包含预览图像信息和元数据，用于在界面中显示 | DICT |

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

***

**Source fingerprint (SHA-256):** `9f64adf4a0130368618fc1ca3655192686815ab10b4153f9552ef23149928e3f`
