Save Image By Path (2lab)
Turn a list of file paths into saved images
- image_paths
If you've ever generated an image inside ComfyUI and then had to go fishing through output/ by hand to find it, SaveImageByPath (2lab) is aimed at you. It takes a list of image file paths and copies them into your ComfyUI output folder under a filename prefix you choose. Instead of a single Save Image node dumping everything into the default timestamped folder, you get your batch images exactly where you want them, named the way you want.
This is a batch-and-publish pack - it's part of AI2lab's toolkit for building workflows that eventually get turned into web APIs on the 2lab server - and this node is the "collect the results" step. It's also handy for any workflow where something earlier already wrote files to disk (a download node, a temp extractor) and you want to sweep them all into output/ in one go.
Inputs that matter
It's a deliberately thin node, and that's the point:
image_paths- aLISTof absolute paths to image files on disk. This is the whole job. Feed it from any node that emits a list of paths.filename_prefix- the output path + prefix under yourComfyUI/output/directory (default2lab/img). Images land inoutput/2lab/img...with the node adding the counter and extension.
There are no outputs - it's a terminal node, the last stop on the wire. You run it, it saves, it's done.
How it works
Mechanically it's about as simple as a node gets: iterate the path list, read each file, write it into ComfyUI/output/<filename_prefix> with a unique suffix so nothing collides. It's the sibling of SaveImageByUrl (2lab) - same idea, except that one downloads from URLs instead of copying local files. If your pipeline produces paths, use this one; if it produces URLs, use the other.
Installing it
Standard custom-node install. ComfyUI Manager, search "comfyUI-tool-2lab", install, restart. Or:
cd ComfyUI/custom_nodes
git clone https://github.com/AI2lab/comfyUI-tool-2lab
Then restart ComfyUI. No models, no extra pip dependencies - the whole pack is pure Python utility nodes.
Gotchas
The main trap is feeding it the wrong kind of list. image_paths is a LIST of path strings - if you wire in an IMAGE batch or a single path, the node has nothing to iterate and your save silently does nothing. Check the type on the wire before you queue.
Also note the subtle thing about this pack: the repo's GitHub page currently returns 404, which usually means the author pulled it private or renamed it. If a fresh clone fails or Manager can't find it, that's a known visibility issue, not an install mistake. The nodes still float around in shared workflows and on comfy.icu, so the pack isn't gone from the ecosystem - it's just harder to install fresh right now.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| image_paths | LIST | — | |
| filename_prefix | STRING | 2lab/img | — |
Outputs (0)
No outputs