Nodes/image_control/abyz22_SaveImage
ComfyUI Node

abyz22_SaveImage

Save to the folder you actually want, no hunting required

By abyz22·Created 3 years ago·Updated 2 years ago· 17
abyz22_SaveImage
  • images
    folder_path

    abyz22_SaveImage is the "save to a folder I type in" node from the image_control pack, and it solves a small but real annoyance. ComfyUI's default SaveImage writes into dated subfolders with a ComfyUI_#### prefix, which is fine until you're running something scripted - a batch, a dataset dump, a folder some other tool is watching. This node lets you type an absolute path and have every image land there, with sequential numbered names that keep counting up across runs.

    The name tells you the story: it's a fork of the built-in SaveImage with the folder and numbering logic replaced. You feed it images and a folder_path string, it's an output node, done. On each run it scans the folder for existing PNGs, finds the highest counter in filenames that match foldername-N.png, and continues from there - so re-running the workflow appends instead of overwriting.

    Two behaviors worth knowing before you hit queue:

    • folder_path is the only input that matters. It's a plain string with an empty default, and unlike the built-in node there's no file browser. no-data is a magic value: it skips saving entirely. That's how the author's queue rig (see abyz22_SetQueue) signals "nothing to write yet" before a folder exists.
    • It drops PNG metadata. The code passes pnginfo=None, so the workflow is not baked into the saved file. Workflow-in-image is a core part of ComfyUI culture - drag a PNG back in and the whole graph rebuilds. This node quietly breaks that. Keep a copy of the workflow JSON if you think you'll want to recover the graph later.

    Where people get burned:

    • An empty folder_path crashes the node - it tries to create a folder named "". Type a real path.
    • It only creates the final directory, not parents, so point it at a path that exists one level up.
    • Numbering only counts files that match the NN-counter.png pattern. Drop a random file in the folder and the counter math can go sideways.
    • Windows users: avoid a trailing slash. The filename prefix comes from the last path segment, so C:/out/ yields files named from an empty segment.

    Install is the standard custom-node drill for this pack: ComfyUI Manager → search image_control → install, or cd ComfyUI/custom_nodes && git clone https://github.com/abyz22/image_control, then restart. The pack's requirements.txt (openpyxl, pytorch-lightning, kornia) gets pulled in by Manager; the heavy ones are only really needed by the LaMa inpainting side, not this node.

    Honest verdict: for one-off saves, the built-in SaveImage is fine. This one earns its keep when you're automating - which, given it comes from a personal pack, is exactly the situation the author built it for. It's a convenience node, it does one thing, and it does it without pretending to be more.

    Categoryabyz22

    Inputs (2)

    NameTypeDefaultDescription
    imagesIMAGE
    folder_pathSTRING

    Outputs (0)

    No outputs