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 generates a visual preview of a mask by converting it into a 3-channel image format and saving it as a temporary file. It takes a mask input and reshapes it into a format suitable for image display, then saves the result to the temporary directory with a random filename prefix. This allows users to visually inspect mask data during workflow execution.

Inputs

ParameterData TypeRequiredRangeDescription
maskMASKYes-The mask data to be previewed and converted to image format
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