Nodes/ComfyUI_faishme/Faishme Save Image
ComfyUI Node

Faishme Save Image

Save Images to Arbitrary Folders, With Numbering That Picks Up Where You Left Off

By AkashKarnatak·Created 2 years ago·Updated about a year ago· 0
Faishme Save Image
  • images
    file_paths
    suffixgen

    Faishme Save Image is the write-side of this pack's file round-trip. Where the built-in Save Image tucks outputs into ComfyUI's output folder, this one saves images to whatever path you hand it - creating directories as needed - and names each file with a suffix and a running counter that resumes where the last run stopped. If you're running a batch pipeline that reads from one folder and writes next to its sources, this is the node that closes the loop.

    How it works

    The node takes an images batch plus a list of file_paths (one per image group) and writes each image to its corresponding path, appended with your suffix. The author's tooltip for suffix - "Suffix identifier for the output" - is the honest description: it's a short tag that lands between the base filename and the number. File naming is base_suffix_0001.png, base_suffix_0002.png, and so on. Two behaviors matter:

    • Directories are created automatically. Point it at a path that doesn't exist and it makes the folders rather than erroring.
    • Numbering continues, not restarts. Before writing, it globs for existing base_suffix* files, finds the highest counter, and starts after it. Re-running the same workflow won't overwrite your previous outputs - a small thing that saves real pain in batch work.

    This is an output node with no outputs: it exists to do work and stop.

    Inputs that matter

    • images - "The images to save." Standard IMAGE input; a batch of them.
    • file_paths - "Save location of file." This is a forced-input string, meaning it's meant to be wired from another node - in practice, the FILE PATH output of Faishme Load Image from Glob. That's the pairing: the loader hands you where each image came from, and this node writes your generated result back beside it.
    • suffix - default "gen". Change it to tag runs, e.g. outfit_a.

    The dependency gotcha

    The node uses pillow's PIL image saving (via tensor2pil), so pillow is required - it is in the pack's requirements. Nothing exotic here. But note the pack's requirements.txt is a grab-bag that installs google-genai, vertexai, and gpustat too, even though this node touches none of them; Manager will install all of it regardless.

    Installing it

    The usual: search "ComfyUI_faishme" in ComfyUI Manager, or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/AkashKarnatak/ComfyUI_faishme
    

    Restart ComfyUI. It lives under FaishmeNodes.

    Where people get burned

    The one real trap is wiring. file_paths is a list, images is a batch, and the node zips them together per group - if you feed a single file path for a whole batch of images, every image goes to the same base name and the counter disambiguates them. That works, but it's usually not what you want; the intended flow is one path per source image, straight from the glob loader. And because it writes to arbitrary absolute paths, keep an eye on where you point it - it won't ask permission, it just makes the directory. For batch pipelines it's quietly the most useful node in this pack after the loader itself.

    CategoryFaishmeNodes

    Inputs (3)

    NameTypeDefaultDescription
    imagesIMAGEThe images to save.
    file_pathsSTRINGSave location of file
    suffixSTRINGgenSuffix identifier for the output

    Outputs (0)

    No outputs