ComfyUI Node

⚡| Save Image

Save Image that stamps in CivitAI-readable metadata — post to CivitAI without re-typing your prompt

By martin-rizzo·Created 8 months ago·Updated 7 days ago· 357
⚡| Save Image
  • images
    filename_prefixZImage
    civitai_compatible_metadatatrue

    Save Image is the pack's replacement for ComfyUI's stock save node, and the difference is one checkbox: CivitAI-compatible metadata. When it's on (it's on by default), the node embeds your generation parameters - prompt, seed, CFG, sampler, and friends - in the image's metadata in a format CivitAI actually parses. The payoff is exactly what you'd hope: you generate with Z-Image Power Nodes, click save, upload to CivitAI, and the site auto-fills your prompt and settings instead of you typing them into a form from a screenshot.

    The author's whole workflow is built around this - the CivitAI project page for Z-Image Power Nodes is a gallery where every image ships with its prompt and workflow, extractable by clicking the "COMFY 14 Nodes" button in the metadata panel. This node is how that pipeline stays reproducible for the rest of us.

    How it works

    The node detects the usual generation parameters automatically - prompt, seed, CFG scale, sampler name, and other standard values - and writes them into the PNG metadata before saving to ComfyUI/output/. It works best with standard ComfyUI workflows and this pack's own nodes. For the messy middle - third-party nodes or complex graphs it can't untangle - there's a manual escape hatch: append >>C to any node's title, and the exporter will explicitly scan that node for identifiable parameters and fold them into the metadata.

    The inputs that matter

    • images (IMAGE) - what to save.
    • filename_prefix (STRING, default ZImage) - the save prefix. It supports ComfyUI's formatting: %date:yyyy-MM-dd% inserts the date, and you can reference other nodes' values (e.g. %Empty Latent Image.width%), so you can organize by date or resolution. The tooltip is your friend here.
    • civitai_compatible_metadata (BOOL, default on) - the headline feature. Turn it off and it saves like the stock node, no metadata meddling.

    No outputs - it's an output node, the end of the line.

    Install

    cd ComfyUI/custom_nodes
    git clone https://github.com/martin-rizzo/ComfyUI-ZImagePowerNodes
    

    Restart ComfyUI (or ComfyUI Manager, search "Z-Image Power Nodes"). No pip dependencies, no model downloads.

    The honest take

    If you post to CivitAI, this is arguably the most useful utility in the pack - metadata that survives a re-upload without a "keep metadata" workflow is rare, and this handles it in one node. Where people get burned: the auto-detection misses genuinely exotic custom nodes, so test once with >>C tagging before you trust a complex workflow's metadata. And the default prefix is just ZImage with a counter - if you generate a lot, set %date% or you'll be scrolling through ZImage_00042.png sooner than you'd like. If you never post anywhere, the stock save node is fine and you can skip this.

    Category⚡Z-Image

    Inputs (3)

    NameTypeDefaultDescription
    imagesIMAGEThe images to save.
    filename_prefixSTRINGZImageThe prefix for the file to save. This may include formatting information such as %date:yyyy-MM-dd% or %Empty Latent Image.width% to include values from nodes
    civitai_compatible_metadataBOOLEANtrueWhether to save the image in a CivitAI compatible format. If checked, this will modify the metadata de forma que el prompt y demas parametros puedan ser leidos por CivitAI.

    Outputs (0)

    No outputs