Nodes/comfyui_gr85/Save Image File
ComfyUI Node

Save Image File

SaveImage with your own path and filename numbering

By veighnsche·Created 2 years ago·Updated 8 months ago· 1
Save Image File
  • image
    path./ComfyUI/output/
    filename_prefixComfyUI
    filename_delimiter_
    filename_number_padding4
    file_extension.png

    ComfyUI's built-in SaveImage node writes to the default output directory with its own naming scheme, and that's fine right up until you want more control - a specific folder per project, a different filename prefix, or a file format other than PNG. Save Image File is the GR85 pack's answer: same basic job as the core save node, but every part of the filename and destination is a field you set yourself.

    The inputs that matter. image is your IMAGE tensor, wired straight from wherever your generation pipeline ends. path defaults to ./ComfyUI/output/ - note that's a relative path, so where it actually lands depends on ComfyUI's working directory at startup, which can surprise you in a Docker container or a managed hosting setup; use an absolute path if you want to be certain where files end up. filename_prefix (default "ComfyUI") and filename_delimiter (default "_") build the base of the filename, and filename_number_padding (default 4, range 0–9) sets how many digits the auto-incrementing counter uses, so consecutive saves don't overwrite each other - ComfyUI_0001.png, ComfyUI_0002.png, and so on. The one optional field, file_extension, defaults to .png but you can point it at .jpg or another format your ComfyUI install can encode.

    It's a pure output node - no return values, nothing to wire downstream. Point it at your pipeline's final image and it writes a file when the run finishes.

    This is also the node to reach for if you're running batches across several projects and want them physically separated on disk rather than all landing in one flat output folder with the same generic prefix - set path and filename_prefix per-project and each run's images sort themselves into the right place automatically, no manual moving of files afterward.

    Installing it. Search "comfyui_gr85" in ComfyUI Manager, or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/veighnsche/comfyui_gr85
    

    Restart ComfyUI. No models to download, no heavy Python dependencies - it's a file writer.

    Common issues. The relative-path default is the one that actually costs people time: the run reports success, but the file isn't where you expected because the working directory wasn't what you assumed. Set an absolute path once and this stops being a mystery. It's also worth double-checking whether files this node writes still carry the embedded-workflow PNG metadata you get from dragging a core-SaveImage output back into ComfyUI - custom save nodes don't always hook into that mechanism the same way the built-in one does, so if "drag the PNG back in to reload the graph" is part of your habit, confirm it still works on this node's output before you rely on it for something you can't easily rebuild.

    CategoryGR85/Utils

    Inputs (6)

    NameTypeDefaultDescription
    imageIMAGE
    pathSTRING./ComfyUI/output/
    filename_prefixSTRINGComfyUI
    filename_delimiterSTRING_
    filename_number_paddingINT40–9
    file_extensionoptSTRING.png

    Outputs (0)

    No outputs