Just Save Image & Out
Save when you want, keep the image flowing
- image
- IMAGE
The plain JustSaveImage terminates your graph - image in, nothing out. That's fine until you want to conditionally save and keep processing the same image, say to feed a preview or a second pass. PgJustSaveImageOut is the passthrough version: it does the exact same conditional save, then returns the IMAGE unchanged so the data flow continues.
It's the node you reach for when saving is a side effect, not the point. Typical setup: generate → save-if-toggle → then pass the image on to an upscaler or a comparison node. With the stock SaveImage you can't do that mid-graph at all, which is why this variant earns its place next to its terminating sibling.
How it works
Identical guts to PgJustSaveImage: when save is true it writes every frame in the batch to ComfyUI's output folder as ComfyUI_<counter>_.png, embedding the workflow/prompt metadata so the PNG stays re-loadable. The difference is the return - the node outputs IMAGE, a straight pass-through of whatever came in. Files are named with an incrementing counter that scans the output folder and continues from the highest existing number, so repeated runs never clobber earlier saves.
Inputs are image (an IMAGE batch) and save (boolean, default false). Output is IMAGE. That's the whole node, and that's the appeal - no filename templates, no format dropdowns, no "output subfolder" text box to argue with.
Install
Ships in PG Nodes: ComfyUI Manager → "PG Nodes" → install → restart, or:
cd ComfyUI/custom_nodes
git clone https://github.com/GizmoR13/PG-Nodes
No models or dependencies.
Common issues
Same footguns as the non-passthrough sibling: saving defaults to off, so an empty output folder means the toggle is off, not a bug. It saves PNG only. And if you wire this into a loop or a batch of many frames, every frame gets its own file - a 40-frame batch means 40 PNGs, so be deliberate about when save is true. If you don't need the image downstream, the terminating JustSaveImage is marginally simpler and makes the graph's "done" point obvious.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| save | BOOLEAN | false | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |