Nodes/ComfyUI_AC_FUNV8Beta1/AC_Super_SaveImage
ComfyUI Node

AC_Super_SaveImage

Save straight from latents — or from ready pixels

By A719689614·Created 3 years ago·Updated 4 months ago· 14
AC_Super_SaveImage
  • samples
  • vae
  • images
    filename_prefixComfyUI

    AC_Super_SaveImage is the terminal node for the pack: it takes whatever your pipeline produced and writes it as a PNG to your ComfyUI/output folder. The thing that makes it slightly different from the core Save Image is that it accepts either form of your result - decoded IMAGE pixels or raw LATENT plus a VAE - so the same node works at both ends of a pipeline without you pre-decoding by hand.

    How it works

    The logic is a short decision tree: if you feed samples (a LATENT) and vae, it decodes the latent through the VAE first, then saves the result. Otherwise it saves the images input directly. Either way it writes a PNG with the standard ComfyUI treatment: the prompt and workflow are embedded as text chunks in the file, a counter is appended to the filename prefix so files don't collide, and compression is fixed at level 4.

    That metadata detail is the one worth remembering from this whole pack: a PNG that came out of ComfyUI carries the workflow that made it. Drag this file back onto the canvas and the whole graph reconstructs - including the seed. Save through a host that re-encodes (Reddit previews, most social embeds) and that metadata is gone, so share the original file if you want others to recover the workflow.

    The inputs

    • filename_prefix - required, defaults to ComfyUI. This becomes the saved filename (plus a _00001_-style counter).
    • samples (LATENT, optional) and vae (VAE, optional) - provide both to decode-and-save in one step.
    • images (IMAGE, optional) - provide this instead to save already-decoded pixels.

    The output is nothing but the UI's "images saved" result; it's an output node, the end of a branch.

    Installing it

    Part of ComfyUI_AC_FUNV8Beta1 by Cc啊程 (Bilibili ComfyUI teacher; README is Chinese). ComfyUI Manager (search "AC_FUN") or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/A719689614/ComfyUI_AC_FUNV8Beta1
    

    Restart ComfyUI. No downloads.

    Where people get burned

    The trap is the optional inputs being all-or-nothing: feed neither images nor samples+vae, and the node errors on a None. Feed samples without vae, and it silently falls back to saving the images input (which will be None too) - same crash. And if you only want to look at results without filling your output folder, this isn't the node - that's AC_Super_PreviewImage. SaveImage is the archival step; keep it on the final render, not the test runs.

    Category🔯AC_FUNV8.0

    Inputs (4)

    NameTypeDefaultDescription
    filename_prefixSTRINGComfyUI
    samplesoptLATENT
    vaeoptVAE
    imagesoptIMAGE

    Outputs (0)

    No outputs