Image Saver (Mango)
The reason the whole pack exists
- images
- metadata
Every node in the Mango pack funnels toward this one. Image Saver (Mango) is an output node that saves your images with embedded Civitai-compatible metadata - the prompt, negative prompt, steps, sampler, CFG, seed, scheduler, model hash, and LoRA hashes all baked into the PNG's text chunks. That's what lets you drag an image onto Civitai (or any metadata reader) and have it reconstruct the recipe automatically. The pack README says it plainly: it's designed for "saving images with metadata supported by Civitai." Everything else in the pack exists to feed this node honest numbers.
If you've ever re-downloaded your own model just to figure out which settings made an old image, this is the node that ends that. The metadata you post alongside images is the coin of the realm in the Civitai ecosystem - "workflow included" culture, prompt sharing, all of it depends on the recipe surviving the image itself.
How it works
The node takes your images batch and a metadata dict (the METADATA output from a Mango sampler), and does three things. First, it builds a parameters text chunk in the classic A1111-style format - Positive prompt, Negative prompt: ..., Steps: 20, Sampler: ..., CFG scale: ..., Seed: ... - and embeds it as a PNG text chunk, alongside each individual metadata key as its own chunk plus your full workflow JSON. Second, it auto-numbers filenames: prefix_00001.png, prefix_00002.png, scanning the folder for the highest existing number so it never overwrites. Third, it honors subdirectories and %date: placeholders in the filename.
Inputs
- images - the IMAGE output of your VAE decoder.
- metadata - the METADATA output from KSampler (Mango) or FluxSampler (Mango). This is the pipeline's whole reason for existing.
- filename_prefix - default
ComfyUI. Supports%date:hhmmss%-style placeholders - e.g.%date:yyyyMMdd%_%date:hhmmss%gives you timestamped filenames. - subdirectory_name - subfolder inside the output folder. Empty means the output root.
It's an output node with no output wires - it just saves and reports back to the UI.
Installing it
Image Saver (Mango) ships with the Mango Node Pack:
cd ComfyUI/custom_nodes
git clone https://github.com/mang01010/MangoNodePack
Restart ComfyUI, or install "Mango Node Pack" from ComfyUI Manager. The README's only extra dependency is pip install safetensors.
Gotchas
Two things bite people. First, the metadata is only as good as what you feed it. If you run a stock KSampler and patch this node onto it with no metadata input, you'll get an image with near-empty metadata - the node can't guess what you didn't give it. The whole chain matters: Mango loader → Mango sampler → this saver. Second, Civitai's hash matching has known flakiness: the pack README warns that occasionally a LoRA hash won't be recognized because the model was updated on Civitai, and re-downloading the file fixes it. And a practical note: filename auto-numbering scans the output folder, so if you clear it between sessions, numbering restarts at 1 and you can silently overwrite older saves. Use a subdirectory or a date placeholder if that bugs you.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | Images to save | |
| metadata | METADATA | Metadata dictionary from upstream (e.g. from KSampler (Mango)) | |
| filename_prefix | STRING | ComfyUI | Prefix for the saved file. Supports placeholders like %date:hhmmss%. |
| subdirectory_name | STRING | Custom subdirectory (inside the output folder) to save the image. |
Outputs (0)
No outputs