💪TB | Save Image
Prompts and settings baked in
- images
- genparams
This is the node at the end of a TinyBreaker workflow, and it does one thing ComfyUI's stock Save Image doesn't: it embeds the generation data in the A1111/CivitAI metadata format as well as ComfyUI's own workflow blob. Upload the result to CivitAI and the site shows your full prompt and settings. Open it in any tool that reads A1111 metadata and the params come right back out. If you plan to post your TinyBreaker images anywhere, this is the output node you want.
How it works
Two kinds of metadata go into the PNG: ComfyUI's standard workflow string (so the image can be dragged back into ComfyUI), and a second block in the CivitAI/A1111 parameters format. Building that second block is the interesting part - the pack translates its internal settings into A1111-style key/values, including mapping ComfyUI sampler names onto their A1111 equivalents (the source contains a full sampler/scheduler translation table, so uni_pc becomes "UniPC", euler_ancestral normal becomes "Euler a", and so on). If you feed it genparams, those settings are what get written; the metadata comes from your actual run, not a re-typed copy.
The inputs
images- theIMAGEtensor to save. Wire the finalVAE Decodeoutput here.filename_prefix- defaultTinyBreaker. Like ComfyUI's native save node, it supports formatting:%date:yyyy-MM-dd%for the date, and even pulling values from other nodes, e.g.%Empty Latent Image.width%. So you can build filenames that encode the aspect ratio or other run parameters.genparams(optional) - the generation parameters to embed in A1111/CivitAI format. Without it the node still saves the image and the ComfyUI workflow, but you lose the CivitAI-readable prompt block - and that's the whole point of this node, so feed it.
No outputs. It's an output node by design - it's the terminus of the graph.
Install
Standard pack install: ComfyUI Manager search "tinybreaker", or git clone https://github.com/martin-rizzo/ComfyUI-TinyBreaker into custom_nodes, restart. Files land in ComfyUI/output like any save node.
Gotchas
The metadata depends on your genparams actually containing the prompt and settings - if you set the prompt only in a vanilla CLIP Text Encode node that never feeds the genparams chain, the embedded CivitAI block will be empty or partial. The pack's own workflows (Unified Prompt Input → genparams) make this automatic; hand-rolled graphs can miss it. Also worth knowing: this writes standard PNG chunks, so it's a classic image with hidden data - if you're generating content you don't want searchable, remember the prompt is in the file, and stripping it requires a metadata wipe, not just a re-save in some viewers.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | The images to save. | |
| filename_prefix | STRING | TinyBreaker | The 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. |
| genparamsopt | GENPARAMS | An optional input with the generation parameters to embed in the image using the A1111/CivitAI format. |
Outputs (0)
No outputs