Save & Preview Image (TJ)
Save & Preview Image (TJ)
- images
- image
The stock ComfyUI Preview Image is fine until you're comparing batches and squinting at tiny tiles. Save & Preview Image (TJ) is the pack's unified alternative: preview and save in one node, with a proper fullscreen viewer, a smart grid for batches, snapshot support, and keyboard navigation. It's the terminal node you stick at the end of a generation branch instead of chaining Preview Image into Save Image and hoping the wiring survives your next edit.
How it works
Feed it an IMAGE batch and it renders a grid inside the node. Double-click (or fullscreen) to inspect a single image close up, use arrow keys to flip through a batch, and grab a "snapshot" if you want to hold a version for comparison. The mode widget decides whether the run actually writes files (Save) or just previews (Preview).
The inputs that matter:
images- the batch to preview/save.mode- Preview or Save. Set to Preview while iterating, flip to Save when you've got a keeper.filename_prefixandpath- the save location.pathdefaults toimage/%date/(a date subfolder under output), and%dateis the kind of small touch that keeps your output folder from becoming a landfill.type- png, jpg, or webp for the written files.condition(optional BOOLEAN) - this is the sleeper feature. Leave it unconnected and it always saves; connect it and the node saves only when the value is true. The author's tooltip points at the use case: wire in an Images Compare Sheet'sis_completeoutput and the node only writes on the last iteration of a Queue Loop. Meaning your batch loop can preview every frame but save exactly one final file.
Wireless is built in - get_name receives images from a TJ provider without a wire, setnode_name publishes the incoming batch, so this doubles as an Embedded Get endpoint in the pack's wireless system. Output: image, the batch passed straight through, so you can keep chaining after it.
Installing it
Standard pack install:
cd ComfyUI/custom_nodes
git clone https://github.com/designloves2/ComfyUI-TJ_NODE
or ComfyUI Manager → ComfyUI-TJ_NODE → restart. No extra dependencies for the image variant (the video sibling needs imageio/imageio-ffmpeg, this one doesn't).
Common issues
The classic trap is leaving mode on Preview after a long run and wondering why nothing saved - it's a deliberate behavior, not a bug. And if you're comparing upscale results, remember this node's preview is a snapshot, not a live mirror: it holds what was there when it ran, which is exactly what you want for before/after work. If you never save from a batch loop, condition is worth the minute it takes to wire.
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | — | |
| get_name | COMBO | 1 options: (none) | |
| setnode_name | STRING | Save_img | — |
| filename_prefix | STRING | image | — |
| path | STRING | image/%date/ | — |
| type | COMBO | png | 3 options: png, jpg, webp |
| mode | COMBO | Preview | 2 options: Preview, Save |
| conditionopt | BOOLEAN | 연결하지 않으면 항상 저장합니다. Images Compare Sheet의 is_complete 출력을 연결하면 Queue Loop 마지막 실행에만 저장됩니다. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |