Toggle Preview Image
PreviewImage that hides itself — temp-file preview with a privacy toggle
- images
- IMAGE
Same story as the pack's Toggle Load Image, but at the output end: Toggle Preview Image is ComfyUI's PreviewImage with the 👁/🫣 privacy toggle bolted on. You feed it an images batch mid-graph, it shows you the frames without saving them to your output folder, and the title-bar icon lets you blank the preview when you don't want a screenful of intermediate results on display.
How it works
It's a faithful reimplementation of the core PreviewImage: each image in the batch is written to ComfyUI's temp directory (not output), and the UI shows the thumbnails. The pack's author kept the temp-file behavior deliberately - the README calls it out, "saves to temp, not output" - which is the whole point of a preview node versus a save node. The temp files are for display; your actual output folder stays clean.
The privacy toggle works exactly like the pack's other image nodes: click 👁 in the title bar, it becomes 🫣, and the node's preview area goes blank. It's a frontend-only interception of the imgs property - the image data is untouched and generation is unaffected. The hidden state serializes into the workflow, so it persists across saves and reloads.
Inputs and outputs
Required: images - wire it to a VAE Decode or any image-producing node. Outputs: IMAGE, passed straight through, so you can preview mid-pipeline without breaking the chain (unlike SaveImage, this node doesn't terminate the flow - well, it is an output node for UI purposes, but the IMAGE output keeps the data flowing).
The trap to know
Because it writes to temp and the state is cosmetic, two practical things follow. First, don't use this when you actually need the file to persist - a PreviewImage temp file isn't guaranteed to stick around, and for anything you want to keep you should use Save/Load Image or the core SaveImage. Second, if you load someone else's workflow that has the privacy mask toggled on, the previews will be blank on your screen too - click the icon to unhide. That last one catches people out more than you'd think when they grab a shared graph.
Installing it
Ships with the Toggle-Pass pack:
cd ComfyUI/custom_nodes
git clone https://github.com/electricty00/ComfyUI-Toggle-Pass
then restart ComfyUI (or install via ComfyUI Manager, searching ComfyUI-Toggle-Pass). No requirements.txt, no pip dependencies - pure ComfyUI-bundled PIL and torch. It's from the same small personal pack as the other toggle image nodes, and like them it's a "stock node plus one feature" utility. If the privacy toggle isn't a feature you need, the built-in PreviewImage does everything else it does.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |