Nodes/wlsh_nodes/Image Save with Prompt/Info File (WLSH)
ComfyUI Node

Image Save with Prompt/Info File (WLSH)

Save the PNG and a matching text file

By wallish77·Created 3 years ago·Updated 2 years ago· 144
Image Save with Prompt/Info File (WLSH)
  • images
  • info
    filename%time_%seed
    path
    extension
    quality100
    positive
    negative
    seed0
    modelname
    counter0
    time_format%Y-%m-%d-%H%M%S

    This is the pack's full-service save node: it writes your image with embedded generation metadata (Automatic1111-style - a comment/EXIF field you or another tool can read back later), and it drops a plain-text .txt file alongside it with the same info, using a matching filename. If you've ever lost track of what settings produced a specific image because you only had the PNG's baked-in workflow to dig through, this is the node that fixes that going forward - you get a human-readable sidecar file you can grep or skim without opening ComfyUI at all.

    The fields that matter. images and filename are required - filename defaults to %time_%seed, and that's a template, not literal text: %time expands using whatever time_format you set (default %Y-%m-%d-%H%M%S), %seed pulls in the seed value, %model pulls in a model name, and %counter pulls an integer - the README recommends wiring that one from a primitive node set to "increment" so it climbs on every run. path lets you route saves into a subfolder; extension picks png/jpeg/tiff/gif, and quality (1-100) controls lossy compression on the formats that use it. The optional fields - positive, negative, seed, modelname, counter, and info - are what actually get written into the metadata and the text file. info specifically is meant to come from this pack's KSamplerAdvanced (WLSH) node's INFO output, which carries a bundle of sampler settings; if you're using stock KSampler you can just skip info and fill in the other fields by hand. One reassuring detail from the README: this node doesn't strip ComfyUI's own embedded-workflow PNG data, so you keep the "drag the image back into ComfyUI to reload the graph" behavior on top of everything this node adds.

    Installing it

    ComfyUI Manager: search "wlsh_nodes" (or "WLSH Nodes"), install, restart. Manual: cd ComfyUI/custom_nodes && git clone https://github.com/wallish77/wlsh_nodes, restart ComfyUI. No models, no unusual dependencies.

    Common issues

    There's a real, author-confirmed gotcha here worth knowing before you hit it yourself: the %time token only gets parsed in the filename field, not the path field. Someone tried to route saves into date-stamped subfolders using %time in path and got nothing - the images saved with the right timestamp in their filename, but the folder structure didn't pick it up. The pack's author confirmed on the project's GitHub issues that path templating simply isn't implemented for time keywords; if you want dated subfolders, build that logic outside this node (a separate string node computing today's date into your path input) rather than relying on %time inside path itself.

    Beyond that, the usual save-node issues apply: if path points somewhere ComfyUI's output directory can't write to, the save silently fails or errors depending on your OS permissions - check that the folder exists and is writable before assuming the node is broken. And if your text-file sidecar comes out mostly blank, it's almost always because the optional fields (positive, negative, seed, etc.) weren't actually wired up - this node writes what you feed it, it doesn't infer anything on its own.

    CategoryWLSH Nodes/IO

    Inputs (12)

    NameTypeDefaultDescription
    imagesIMAGE
    filenameSTRING%time_%seed
    pathSTRING
    extensionCOMBO4 options: png, jpeg, tiff, gif
    qualityINT1001–100
    positiveoptSTRING
    negativeoptSTRING
    seedoptINT00–18446744073709550000
    modelnameoptSTRING
    counteroptINT00–18446744073709550000
    time_formatoptSTRING%Y-%m-%d-%H%M%S
    infooptINFO

    Outputs (0)

    No outputs