Nodes/ComfyUI_EmAySee_CustomNodes/EmAySee Save Image Exact
ComfyUI Node

EmAySee Save Image Exact

Save to an exact path with an exact filename — built for dataset dumps

By EmAySee·Created about a year ago·Updated 4 months ago· 2
EmAySee Save Image Exact
  • images
    path/ai/training/
    filenameimage.png

    Some save nodes auto-increment counters, embed metadata, and generally tidy up after you. This one does none of that: you give it a path and a filename, it writes exactly that file, every run, overwriting whatever was there. It's the "dump into my training folder with a name I control" node - think LoRA dataset prep, where you want a predictable sample_014.png and don't want ComfyUI's counter noise or embedded workflow metadata.

    How it works

    Three required inputs:

    • images (IMAGE) - whatever you're saving.
    • path (default /ai/training/ - note that default is the author's own machine, a path you almost certainly don't have; set your own).
    • filename (default image.png) - exact filename, including extension.

    Outputs: none. It's an output node.

    Two behaviors worth knowing. First, overwrite semantics: if image.png already exists, it's replaced. No counter, no "same name gets _001". That's the point - exact. Second, for batches: if you feed it multiple images it appends _0, _1, … before the extension (image_0.png, image_1.png) so a batch doesn't clobber itself. Single image = exact filename.

    What it drops on purpose

    No PNG metadata embedding - the workflow won't travel with these files. And no subfolder handling inside ComfyUI's tree; path is used as-is via os.makedirs(path, exist_ok=True), so it's a true absolute path or nothing. If you type a relative path, it resolves relative to whatever ComfyUI's working directory is, which is rarely what you mean - keep it absolute.

    Where it shines

    • LoRA/training dataset staging. Consistent, predictable filenames and no metadata bloat in your caption/DB matching.
    • Piping images to another tool that watches a fixed directory for a fixed name.
    • A "save exactly here" escape hatch when the counter logic of other save nodes gets in the way.

    Installing it

    Part of ComfyUI_EmAySee_CustomNodes. ComfyUI Manager → search the pack title → Install, or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/EmAySee/ComfyUI_EmAySee_CustomNodes
    # restart ComfyUI
    

    Under EmAySee/Image, no dependencies (PIL is already part of the ComfyUI stack).

    Bottom line

    The no-surprises saver: exact path, exact name, overwrite when told. Just remember it also overwrites when you forgot - an empty workflow re-run will silently replace last run's file, so name things deliberately.

    CategoryEmAySee/Image

    Inputs (3)

    NameTypeDefaultDescription
    imagesIMAGE
    pathSTRING/ai/training/
    filenameSTRINGimage.png

    Outputs (0)

    No outputs