仅保存图片
Save an image and keep the graph flowing (no metadata faff)
- images
- images
ComfyUI's core Save Image writes your PNG to output/ and lets the workflow end. LamSaveOnly (仅保存图片, "save image only") does the same write but also passes the images through as an output, so your graph doesn't have to dead-end at a save. That pass-through is the entire point, and it's why the node exists.
The name undersells it slightly - it's not that it saves "only" without anything else, it's that it saves without dragging in all the metadata machinery. The author subclassed ComfyUI's own SaveImage and stripped it down: no prompt/PNG metadata, no extra bookkeeping, just "write these images to output/ and hand them along." If you've ever wanted to checkpoint a batch of images mid-pipeline without terminating the branch - say, save an intermediate result and keep processing it further - this is the node.
Inputs
- images (required) - the IMAGE batch to save and pass through.
- filename_prefix - where they land. Default
ComfyUI, which producesComfyUI_00001_.pngstyle files in your output directory.
Outputs
- images - the same batch you fed in, unmodified, so you can continue the graph past the save point.
It's marked as an output node, so it'll show as a proper "end" in the UI - but the images output keeps the data alive for whatever comes next. One nuance: since it bypasses the standard metadata writing, the PNGs won't carry the workflow's prompt info the way core Save Image files do. If you rely on that for recall ("what generated this?"), this isn't your node; if you just want clean files and a continuing pipeline, it's ideal.
Install
Part of the ComfyUI_Lam pack:
cd ComfyUI/custom_nodes
git clone https://github.com/yanlang0123/ComfyUI_Lam
or via ComfyUI Manager, then the README's install + 修改文件 steps. No models, no downloads - it's pure Pillow and the core nodes module.
Gotchas
The missing-metadata behavior is the main gotcha, as above. Also, because it passes the batch straight through, it doesn't preview or annotate anything - don't wire it where you expected a preview pane. For a save-and-stop-at-the-end job you don't need this node at all; core Save Image does that fine. This one earns its slot specifically in long chains where you want a checkpoint copy mid-graph.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | — | |
| filename_prefix | STRING | ComfyUI | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| images | IMAGE | — |