Skip to main content
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub
The MaskPreview node saves mask data as a preview image to your ComfyUI output directory, allowing you to visually inspect mask data during workflow execution. It converts the input mask into a format suitable for image display and saves it with a configurable filename prefix.

Inputs

ParameterData TypeRequiredRangeDescription
maskMASKYes-The mask data to be previewed and saved as an image
filename_prefixSTRINGNo-Prefix for the output filename (default: “ComfyUI”)
promptPROMPTNo-Prompt information for metadata (automatically provided)
extra_pnginfoEXTRA_PNGINFONo-Additional PNG information for metadata (automatically provided)

Outputs

Output NameData TypeDescription
uiDICTContains the preview image information and metadata for display in the UI

Source fingerprint (SHA-256): c9d9dbc5720ac4c75518c758f2ec3e789b0d3c45431590fb0008573bb9159427