Save Image (SD WebUI Style)
Your ComfyUI output folder is a mess. This node gives it WebUI-style order.
- images
The default SaveImage node dumps every image flat into ComfyUI/output. Run a few hundred generations and you get one giant folder where image_00123.png sits next to image_00456.png with no rhyme, no reason, and no way to tell what batch a file came from. People have been complaining about this since ComfyUI existed - there's a December 2023 r/comfyui thread titled "Organizing 'Output' Folder with Date-Based Subfolder Structure" that is exactly this complaint. SaveImageAsSDWebUI is a small node that fixes it by giving you the folder layout Stable Diffusion WebUI users never had to think about.
What it actually does
It's a drop-in replacement for SaveImage. You swap the node, wire images in, and that's it - no extra connections. Where ComfyUI saves output/foo_00001_.png, this saves into a yyyy-mm-dd folder with a global counter and your generation seed in the filename, like output/2026-08-16/00001-12345678.png. The author's README is refreshingly honest about the motivation: they're a WebUI refugee who "doesn't want to leave their comfort zone." Fair. The date-folder habit is genuinely hard to give up once you've had it.
The seed part is the clever bit. It scans your workflow's prompt, finds the first KSampler or KSamplerAdvanced node, and pulls the seed from it - following wires back through common seed sources like Seed (rgthree) and ImpactInt. So your filename doubles as your settings log. If it can't find a sampler, the seed is just 0.
The inputs that matter
Four inputs, all on the node:
images- the IMAGE tensor to save. Required.filename_prefix- this one input does double duty, and it's the thing to learn. The date folder is always the direct parent of the file; the prefix sits above it. Ends with/and it's a subdirectory only (txt2img/→output/txt2img/2026-08-16/00001-123.webp). No slash and it's a filename prefix only (abc→output/2026-08-16/abc00001-123.webp). Middle slash = both (imgEdit/qwen→output/imgEdit/2026-08-16/qwen00001-123.webp). Easy to remember once you've seen the pattern once.image_format-png(default),jpg, orwebp.quality- 0–100, only used for jpg/webp. Ignored for png.
It has no outputs - this is an output node, the end of the line.
Metadata, the part people overlook
ComfyUI's whole sharing culture runs on workflow metadata embedded in the image: drag a generated PNG back in and the graph reconstructs. This node preserves that. PNG gets the full prompt and workflow via PngInfo, WebP gets it via EXIF tags. JPG gets nothing. If you switch to jpg to save space, you're breaking the "workflow included" behavior - that's the trade-off, and it's worth knowing before you batch out a hundred of them.
Install and gotchas
Install through ComfyUI Manager (search "ComfyUI-SaveImageAsSdWebUI"), or the manual way:
cd ComfyUI/custom_nodes
git clone https://github.com/1lch2/ComfyUI-SaveImageAsSdWebUI
Then restart ComfyUI. No model downloads, no heavy dependencies - it's pure Pillow and numpy, both already in ComfyUI. One of the rare custom nodes that won't drag a dependency conflict into your environment.
A couple of honest caveats. The counter is per-folder, not truly global - it scans whatever folder it's writing into and continues from the highest number there, which is close enough in practice. There's a path-traversal guard that throws if a prefix tries to escape the output directory, so ../ won't work (that's a feature). And the numbering only sorts within a folder if your batches land on the same day - overnight runs are the one time the sequence resets. If you only generate ten images a week, this is a solution looking for a problem. If you churn out hundreds and browse your output folder like a photo library, it's the one you'll reach for.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | The images to save. | |
| filename_prefix | STRING | ComfyUI | Filename prefix and/or output subdirectory. A date folder (yyyy-mm-dd) is always created as the direct parent. Seed is auto-resolved from the first KSampler node (fallback: 0). Examples (output dir = ComfyUI/output): 'txt2img/' -> output/txt2img/{date}/00001-seed.ext 'abc' -> output/{date}/abc00001-seed.ext 'imgEdit/qwen' -> output/imgEdit/{date}/qwen00001-seed.ext '' -> output/{date}/00001-seed.ext 'abc/def/' -> output/abc/def/{date}/00001-seed.ext 'abc/def/114514' -> output/abc/def/{date}/11451400001-seed.ext |
| image_format | COMBO | png | Image save format. |
| quality | INT | 1000–100 | Save quality for JPG/WebP formats (0-100). Ignored for PNG. |
Outputs (0)
No outputs