Nodes/XENodes/Save Image
ComfyUI Node

Save Image

PNG master or WebP gallery copy, with the workflow still inside

By xeinherjer-dev·Created 6 months ago·Updated a day ago· 2
Save Image
  • images
  • images
filename_prefiximage/ComfyUI
format

Save Image is the XENodes-pack version of the node you already use daily - with one upgrade that matters: the format dropdown offers PNG or WebP, and WebP gets real controls. The stock SaveImage is PNG-only, and if you've ever wanted a small gallery copy without opening an editor, you know the gap this fills. It lands files in ComfyUI/output/, embeds the workflow metadata the ecosystem runs on, and passes the images back out so you can chain a preview after it.

The format dropdown is where the author's choices live:

  • PNG - lossless, with a compression slider (0–9, default 6). Compression only affects file size and encode time, never quality, so this is your master format. Crucially, PNG is the only format that round-trips the full workflow: the graph gets written into the file's text chunks, and dragging the image back onto the canvas rebuilds the entire pipeline. The KB's image-I/O doc is blunt about it - PNG is the master, everything else is a derivative.
  • WebP - much smaller files, with lossless (boolean, default off) and quality (0–100, default 90) controls. The trade: WebP has no PNG text chunks, so it keeps metadata only in EXIF, and a full ComfyUI graph does not survive the round-trip. Use it for sharing or archiving a compact copy - keep the PNG as your source of truth.

Beyond the format: filename_prefix (default image/ComfyUI) accepts the usual template language - %date:yyyy-MM-dd% for dates, %SomeNode.widget% to pull live values from other nodes, and subfolders via a slash, so portraits/run_a scopes your output. The images output passes the input tensor straight through, which means you can drop this node in the middle of a graph as a "save a copy here" tap without ending the branch. It's an output node though, so anything downstream still runs - just don't expect the pipeline to continue through it in the execution-order sense.

Install is the pack one-liner:

cd ComfyUI/custom_nodes
git clone https://github.com/xeinherjer-dev/ComfyUI-XENodes.git xenodes

or search "ComfyUI-XENodes" in ComfyUI Manager, then restart. No models, no pip deps for this node - it leans on core ComfyUI's own image-save helpers, which is why the metadata behavior matches stock.

Honest takes. For most people this is a marginal upgrade over the default save node, and I wouldn't install a whole pack for it alone - but if you're already running XENodes for the Multi-Switch or Slider, it's a genuinely nicer save node with zero cost. The WebP output is the real reason to switch: one node, and you've got a web-ready file next to your PNG master. The one thing it won't do is feed CivitAI's model auto-linking - for that you still want a metadata-format node that writes A1111-style parameters. And the usual pack gotcha: if no XENodes nodes load at all after install, check the ComfyUI console; the pack imports everything as one unit, so a sibling node's missing dependency (SaveAudio needs PyAV's av) can hide the whole menu.

Categoryxenodes/image

Inputs (3)

NameTypeDefaultDescription
imagesIMAGEThe images to save (supports SDR and 10-bit HDR images).
filename_prefixSTRINGimage/ComfyUIThe 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.
formatCOMBOThe image format to save as.

Outputs (1)

NameTypeDescription
imagesIMAGE