Save Image to Absolute Path
Save images to a folder you actually chose, without ComfyUI renaming them
- images
Save Image to Absolute Path is ComfyUI's default save node, except you get to say where the file goes and what it's called. The stock SaveImage always dumps into ComfyUI/output/ with a counter prefix; this node takes a file_path string and writes your render to exactly that location - which is the whole difference that matters when you're building a dataset directory or feeding a folder-watching script.
Why you'd reach for it
Dataset assembly, mostly. If you're scraping or generating hundreds of images for LoRA training, you want them landing in E:/datasets/faces/, not buried in a generic output folder you then have to sort. This node is the destination half of that pipeline: the pack's polymath_scraper pulls images in, the polymath_chat node captions them, and this node writes the results where you told it to. It also embeds the workflow's prompt and extra PNG metadata into each file, which is the ComfyUI culture at its best - drag a saved image back in and the whole graph reconstructs.
How it works
You feed it images and a file_path. The path can be two things and the node figures out which:
- A directory -
E:/datasets/faces. It creates the folder if it doesn't exist, then saves each image asfilename_00001.png,filename_00002.png, … where the filename defaults to whatever's after the last/(so you can sneak a prefix in). - A full file path -
E:/datasets/faces/my_render.png. It strips the extension, treats the directory as the folder, and saves withmy_render_00001.pngstyle names.
The numbering is the clever bit: instead of guessing, it counts existing files in the target directory and continues from there, so you can run the same workflow repeatedly without ever overwriting an earlier save. If a name collision still happens, it appends a random 8-character suffix. If file_path is left empty, it falls back to the normal ComfyUI output directory, so an unconfigured instance behaves like a stock save node.
It has no outputs - it's an output node, the end of the line in your graph, exactly like the built-in SaveImage.
Installation
Part of comfyui_LLM_Polymath: ComfyUI Manager → search "comfyui_LLM_Polymath", or:
cd ComfyUI/custom_nodes
git clone https://github.com/lum3on/comfyui_LLM_Polymath
pip install -r requirements.txt
then restart. The node itself needs only PIL and numpy, so it loads fine even if the pack's heavier dependencies (easyocr, jax, gallery-dl) are missing.
Gotchas
Two worth knowing. First, the pack's own example workflows still reference this node under its old name, polymath_SaveAbsolute - the live registration is polymath_helper. If you load an example and ComfyUI reports a missing node, that's why; you can just delete the old node and drop in a fresh polymath_helper. Second, the counter counts all image files in the target folder, so if you point it at a folder that already has 40 unrelated PNGs, your first save lands at ..._00041.png. That's usually fine - but if you expected a clean 00001, use a fresh folder. And be careful what you point it at: it will happily os.makedirs a path deep in your filesystem. An absolute path is a promise to manage it yourself.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | — | |
| file_path | STRING | — |
Outputs (0)
No outputs