๐พ๐ผ๐ Save Image(s) to a folder
Organized output without the boilerplate
- images
- images
Core ComfyUI's Save Image node dumps everything into one flat output/ directory with a filename prefix. Fine for casual use, annoying once you're generating for multiple characters, styles, or projects and want them actually sorted. This node fixes that by letting you name a subfolder - including nested ones - and it handles the numbering for you: my_folder/00001.png, my_folder/00002.png, and so on, incrementing automatically.
How it works
Point it at a folder name and it saves your image(s) there, creating the folder if it doesn't exist. You can nest paths too - the author's own example is something like character/dog/small, letting you build out a whole directory structure for organizing generations by character, pose, or whatever taxonomy makes sense for your project. The numbering is also resilient to gaps: if you've deleted some files out of the folder, it doesn't blindly continue from the last number it remembers - it looks at what's actually there and picks up from the highest number it finds, plus one. So you won't get filename collisions just because you cleaned house.
A neat pattern from the README worth stealing: chain this with the pack's Load Images from Output Folder node and a text/combine setup to build a reusable "save to this character's folder" macro, then right-click and Convert to Group Node so it becomes a single reusable block instead of four spaghetti-connected nodes every time.
The inputs and outputs that matter
images(IMAGE) - the image or batch of images to save.folder_name(STRING, defaultmy_folder) - the subfolder inside your output directory, nested paths allowed.- Output:
images(IMAGE) - a passthrough of what you fed in, so you can keep the pipe going to a Preview Image or another save step afterward instead of dead-ending here.
How to install it
Via ComfyUI Manager: search Bjornulf_custom_nodes, install, restart. Manually:
cd ComfyUI/custom_nodes
git clone https://github.com/justUmen/Bjornulf_custom_nodes
cd Bjornulf_custom_nodes && pip install -r requirements.txt
then restart ComfyUI. This particular node has no special dependency beyond basic file I/O, though the shared requirements.txt for the pack covers a lot more (Ollama, FFmpeg, sound libraries) since it's all one repo.
Common issues & troubleshooting
Confusing this with core Save Image. ComfyUI Manager's missing-node detection doesn't always resolve Bjornulf's nodes cleanly from a shared workflow - a real report from a user importing a workflow saw Manager fail to auto-install some of them, and a commenter on that thread pointed out plainly that a lot of the pack's simpler utility nodes overlap with equivalents in other packs. If you're just trying to open someone else's shared workflow and this node is missing, installing the whole pack (rather than hunting for exactly this one node) is the reliable fix.
Folder path typos silently create a wrong folder. Because it creates directories that don't exist rather than erroring, a stray typo in folder_name just quietly makes a new, wrong folder instead of warning you. If your images "disappeared," check for a near-miss folder name before assuming a save failure.
Numbering looks off after manually adding files. Since it scans the folder for the highest existing number, dropping in files from elsewhere with unrelated names won't confuse it - but files with number-like names that don't match its pattern can throw off what it considers the "highest" one. Keep the folder to files this node actually wrote if you want predictable numbering.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | โ | |
| folder_name | STRING | my_folder | โ |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| images | IMAGE | โ |