Skip to main content
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

ParameterDescriptionData TypeRequiredRange
maskThe mask data to be previewed and saved as an imageMASKYes-
filename_prefixPrefix for the output filename (default: “ComfyUI”)STRINGNo-
promptPrompt information for metadata (automatically provided)PROMPTNo-
extra_pnginfoAdditional PNG information for metadata (automatically provided)EXTRA_PNGINFONo-

Outputs

Output NameDescriptionData Type
uiContains the preview image information and metadata for display in the UIDICT
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): c9d9dbc5720ac4c75518c758f2ec3e789b0d3c45431590fb0008573bb9159427