Nodes/ComfyUI illumorae/Save Image Extended FolderPath
ComfyUI Node

Save Image Extended FolderPath

Save PNGs into your own project folders, with counters and metadata intact

By CorvaeOboro·Created 8 months ago·Updated 6 days ago· 1
Save Image Extended FolderPath
  • images
    folderpath_inputc:/
    foldername_prefixgen
    filename_prefixoutput
    delimiterunderscore
    save_metadataenabled
    counter_digits3
    counter_positionlast

    Stock ComfyUI's Save Image dumps PNGs into one flat output directory, and if you generate hundreds of variants a day, that becomes a wall of files you have to sort by hand. Save Image Extended FolderPath, part of the illumorae pack (CorvaeOboro's toolkit aimed at randomization and project-structured iteration), is the antidote: it writes your PNGs to an external folder path you specify, with a naming scheme, a counter, and metadata - the same job the WebP variant of this node does, just for stills.

    If you run "one project folder per character/object, with prompt-derived filenames" workflows, this is the node that makes that structure real. Pair it with the pack's Text To Filename Safe Text node and you get readable, self-describing filenames like gen/queen_aurora_sunset_014.png instead of ComfyUI_00001_.png.

    How it works

    Mechanically it's a close cousin of core Save Image, rerouted. You supply:

    • images - the IMAGE batch to write.
    • folderpath_input - the base directory (default c:/, change it to your actual path).
    • foldername_prefix - a subfolder name under that base, default gen.
    • filename_prefix - default output.
    • delimiter - underscore, dot, or comma, for joining name and counter.
    • save_metadata - enabled (default) embeds the full ComfyUI workflow and prompt into the PNG, which is what makes the file a portable project (the "drag it back onto the canvas and the graph rebuilds" trick).
    • counter_digits (2–6) and counter_position (first/last) - output_001.png vs 001_output.png.

    It sanitizes names (Windows-illegal characters become underscores), creates the folder if it doesn't exist, and scans for the highest existing counter so re-runs append instead of overwriting. The one structural difference from the WebP sibling: this node declares no outputs. It's an output-only node; the save is the whole point, so don't go looking for a filepath string to wire onward - the console log tells you where it wrote.

    Using it well

    The filename workflow is where this shines: feed a prompt through Text To Filename Safe Text, then connect that string to filename_prefix (convert the widget to an input first). Combined with the pack's folder-path loaders, you get a closed loop - generate into a project folder, then load variants back by string match for the next pass. That's the "project structure" workflow the whole pack is built around.

    Installing it

    ComfyUI Manager → search "illumorae" → install, or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/CorvaeOboro/ComfyUI_illumorae
    

    Restart ComfyUI. No models to download; dependencies are the usual numpy/pillow/torch stack you already have.

    Troubleshooting

    Same preview gotcha as every external-path save node: the image won't appear in ComfyUI's output gallery because it's not in the managed folder - check the path you typed. If metadata embeds but your PNG viewer shows nothing special, that's normal; the workflow lives in the PNG's text chunks and only ComfyUI reads them back. And don't set counter_digits higher than you need - output_000001.png is ugly and doesn't sort any better.

    Categoryillumorae

    Inputs (8)

    NameTypeDefaultDescription
    imagesIMAGE
    folderpath_inputSTRINGc:/
    foldername_prefixSTRINGgen
    filename_prefixSTRINGoutput
    delimiterCOMBOunderscore3 options: underscore, dot, comma
    save_metadataCOMBOenabled2 options: disabled, enabled
    counter_digitsCOMBO35 options: 2, 3, 4, 5, 6
    counter_positionCOMBOlast2 options: first, last

    Outputs (0)

    No outputs