Nodes/ComfyUI_mittimiLoadPresetLite/SaveImageWithParamTextLite
ComfyUI Node

SaveImageWithParamTextLite

Save PNGs with the whole recipe baked in — and CivitAI will read it

By mittimi·Created about a year ago·Updated 6 months ago· 0
SaveImageWithParamTextLite
  • images
  • parameters_data
    filename_prefixComfyUI
    type
    level_or_method6
    losslesstrue
    quality80
    add_text

    Stock ComfyUI's SaveImage writes the node graph into the PNG, which is great for dragging the image back onto the canvas. But it doesn't write the flat A1111-style parameters: block that CivitAI's uploader auto-detects, and that's exactly the gap SaveImageWithParamTextLite (its menu name in mittimiTools) fills. Feed it your images plus this pack's parameters_data, and it saves the file with a clean, human-readable recipe - positive prompt, negative prompt, steps, sampler, scheduler, CFG, seed, size, model, clip, VAE - embedded in the file.

    This is the node that completes the pack's metadata loop. LoadSetParametersLite hands it the parameters_data bundle, it formats that into the classic A1111 parameter string, and writes it as a PNG text chunk keyed parameters - or, if you pick WEBP, into the EXIF tag that A1111-style tooling reads. Keep the format difference in mind: PNG is the only common format that round-trips the full recipe and stays lossless; WebP keeps the parameters string but re-encodes and drops the node graph. PNG is your master file, WebP is your shareable.

    The controls you'll actually touch:

    • type - PNG or WEBP.
    • filename_prefix - same templating as stock SaveImage (auto-incrementing counter, subfolders via slashes).
    • parameters_data - plug the PDATA output from the preset hub here; without it you get the image but no recipe.
    • add_text - an optional extra string that lands at the top of the metadata block.

    The rest is compression detail: level_or_method is the PNG compression level or the WebP method (capped at 6 even if you dial it higher), and lossless plus quality govern the WebP encoder. There's also a nice touch in the filename - if the bundle has a seed, the file gets a _12345 suffix, otherwise a timestamp, so you can tell runs apart at a glance.

    One thing to know before you rely on it: the recipe is only as good as what you feed it. The node formats whatever parameters_data contains - it doesn't invent anything. If you skip the PDATA wire entirely, you'll get a metadata block with just your add_text (if any), which defeats the purpose. Wire the hub's parameters_data in, and this node quietly turns every saved PNG into a portable settings sheet - one that CivitAI's uploader can auto-detect, which is more than the stock SaveImage can say.

    Install via ComfyUI Manager (search "ComfyUI_mittimiLoadPresetLite") or git clone https://github.com/mittimi/ComfyUI_mittimiLoadPresetLite into custom_nodes, then restart. Only dependency is toml; no models to download.

    CategorymittimiTools

    Inputs (8)

    NameTypeDefaultDescription
    imagesIMAGE
    filename_prefixSTRINGComfyUI
    typeCOMBO2 options: PNG, WEBP
    level_or_methodINT61–9
    losslessBOOLEANtrue
    qualityoptINT801–100
    parameters_dataoptPDATA
    add_textoptSTRING

    Outputs (0)

    No outputs