Nodes/ComfyUI-Hypnodes/Hypnodes Image Saver
ComfyUI Node

Hypnodes Image Saver

Auto-filing your generations into category/Creator/Character folders

By hypnichorse·Created 4 months ago·Updated 2 months ago· 0
Hypnodes Image Saver
  • images
  • lib_bus
    ◄Save Imagestrue►
    ◄Preview Imagestrue►
    ◄Embed workflowtrue►
    ◄Category foldertrue►
    ◄Creator foldertrue►
    ◄NSFW folderfalse►
    ◄Filename prefixHypnodes►
    ◄Custom path►
    ◄Compression Level4►
    ◄Scale (%)100►

    If the Character Library is the vault, the Image Saver is the filing clerk. It's an output node - the end of the line - that saves your generated images into an automatically-built folder structure organized by category, creator, and character name. If you generate a lot of character work, this is the node that stops your output folder from turning into an unsorted mountain of 00001.png files.

    The two inputs that matter

    • images (IMAGE) - the final image tensor from your pipeline.
    • lib_bus (HN_LIB_DATA) - character identity data from the Character Library. This is where name, category, and creator come from, and it's what drives the folder structure.

    Everything else is a toggle or setting:

    • Save Images - the global kill-switch. Off lets you run test generations without writing anything to disk.
    • Preview Images - controls whether the node shows the image preview on its body. Turn off to save VRAM and canvas space on batch runs.
    • Embed workflow - when on (default), embeds the full node graph and prompt metadata into the PNG. This is the "workflow included" culture ComfyUI is famous for - but if you want clean, anonymous output files, flip it off.
    • Category folder / Creator folder / NSFW folder - toggles for directory structure. On, they build nested folders matching category/Creator/Character/, with an optional isolated NSFW subfolder at the end.
    • Filename prefix (default Hypnodes) - the base name; the final files come out as Hypnodes_CharacterName_0001.png.
    • Custom path - leave blank to use ComfyUI's standard output dir, or paste an absolute path to save somewhere else.
    • Compression Level (0–9, default 4) - lossless PNG compression. 9 maximizes disk savings at a CPU cost; the default 4 is a reasonable middle.
    • Scale (%) (1–100, default 100) - downsizes images with LANCZOS resampling before saving, useful when you generate big and archive small.

    The gotcha nobody warns you about

    lib_bus is a required input. That means the Image Saver cannot be used standalone - you need a Hypnodes Character Library node wired in, even if you don't care about the folder structure and just want a plain save. If you're grabbing this node for its compression and scaling features without adopting the library system, you'll hit a wall at the wire. With the library connected, the whole thing works as advertised: pick a character, generate, and the image lands in the right folder with the right name.

    Where people get burned

    The Embed workflow toggle is the one most people forget. ComfyUI's default behavior of stuffing the full graph into the PNG is great for sharing recipes, but if you're posting output publicly and your workflow contains prompts or settings you'd rather not share, that metadata is right there in the file. Flip Embed workflow off for clean files.

    Install

    ComfyUI Manager (search Hypnodes) or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/hypnichorse/ComfyUI-Hypnodes
    

    Restart ComfyUI. No model downloads; the pack only depends on numpy and pillow, both already in ComfyUI.

    CategoryHypnodes

    Inputs (12)

    NameTypeDefaultDescription
    imagesIMAGE—
    lib_busHN_LIB_DATA—
    Save ImagesBOOLEANtrue—
    Preview ImagesBOOLEANtrue—
    Embed workflowBOOLEANtrue—
    Category folderBOOLEANtrue—
    Creator folderBOOLEANtrue—
    NSFW folderBOOLEANfalse—
    Filename prefixSTRINGHypnodes—
    Custom pathSTRING—
    Compression LevelINT40–9—
    Scale (%)INT1001–100—

    Outputs (0)

    No outputs