Description
The Preview Image Or Mask node allows you to inspect an image or a mask directly within the ComfyUI interface. It accepts either an image tensor or a mask tensor as input and displays the visual representation in the node’s preview area. This node produces no output – its sole purpose is intermediate visual feedback during a workflow.
Inputs
| Name | Type | Required | Tooltip |
|---|---|---|---|
input | MULTITYPE (Image or Mask) | Yes | The image or mask to preview. |
- input – The image or mask that you want to preview. Because the type is
MULTITYPE, you can connect an output from any node that provides an image (e.g.,VAEDecode,LoadImage) or a mask (e.g.,LoadMask, compositing nodes). The node will automatically interpret the tensor and display it in the UI.
Outputs
This node has no outputs. It is a terminal node that only provides a visual preview and does not pass data further downstream.
Usage Notes
- Use Preview Image Or Mask as a debugging tool or to visually verify the result of a processing step without adding an extra save or encode node.
- Because the node consumes a single tensor and does not propagate it, insert it into a branch where you want to inspect an intermediate result without affecting the rest of the workflow.
- The preview updates in real time when you queue a prompt, allowing you to see changes at each step.
- Performance tip: Avoid placing many preview nodes in a single workflow if you only need a few checkpoints – each preview renders in the UI, which may become sluggish with a large number of active preview nodes. For final outputs, use dedicated save or display nodes instead.
Comments
Sign in with GitHub to join the discussion.