ComfyUI Node
π― YFG CivitAI MetaSave V2
Saves images with full A1111-compatible CivitAI metadata (model, LoRA, embedding hashes, sampler settings, prompts) so CivitAI automatically populates resources and generation info. V2 adds metadata-aware filename tokens, configurable file numbering, unlimited extra metadata fields that grow as you use them, and filename / filepath outputs.
π― YFG CivitAI MetaSave V2
- images
- filename
- filepath
βfilename_prefixComfyUIβΊ
βsubdirectory_nameβΊ
βoutput_formatpngβΊ
βsave_workflow_jsonfalseβΊ
βquality100βΊ
βmetadata_scopefullβΊ
βfilename_numberingalwaysβΊ
βnumbering_start1βΊ
βnumbering_padding5βΊ
βinclude_batch_numfalseβΊ
βprefer_nearesttrueβΊ
βextra_key1βΊ
βextra_value1βΊ
Categoryπ― YFG/πΎ Save
Inputs (14)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | The images to save. | |
| filename_prefix | STRING | ComfyUI | Prefix for the saved filename. Built-in tokens: %date:yyyy-MM-dd% %seed% %model% %width% %height% %pprompt:32% %nprompt:32% (:N truncates to N chars) Custom metadata tokens: %extra:KEY% value of the extra metadata field named KEY %extra:KEY:12% same, truncated to 12 characters %KEY% extra field KEY, or any captured metadata field such as %Sampler%, %Steps%, %CFG scale% Key matching is case-insensitive. Unresolved tokens are replaced with nothing and logged to the console. A literal / creates a subfolder; slashes inside substituted values are made safe. |
| subdirectory_name | STRING | Optional sub-folder inside the output directory. Supports the same tokens as filename_prefix. Leave blank for the default output folder. | |
| output_format | COMBO | png | Image format to save. png β lossless, metadata stored in a PNG text chunk jpg β lossy, metadata stored in EXIF UserComment webp β metadata in EXIF; lossless when quality is 100 |
| save_workflow_json | BOOLEAN | false | Also write a sidecar .json file containing the raw ComfyUI workflow alongside the image. |
| quality | INT | 1001β100 | Compression quality for jpg and webp. 100 is best quality (and lossless for webp). Ignored for png. |
| metadata_scope | COMBO | full | full β A1111 parameters + full ComfyUI workflow default β same as the built-in SaveImage node parameters_only β A1111-style parameters string only workflow_only β ComfyUI workflow JSON only none β no metadata embedded |
| filename_numbering | COMBO | always | always β every file is numbered, including the first on_conflict β first file is unnumbered; a number is only added when the name already exists |
| numbering_start | INT | 10β999999 | First number to use. 0 starts at 0000, 1 starts at 0001. |
| numbering_padding | INT | 51β10 | Digits to pad the number to. 5 gives 00001, 4 gives 0001. |
| include_batch_num | BOOLEAN | false | Append a 5-digit batch index to the filename when saving multiple images from one run. |
| prefer_nearest | BOOLEAN | true | When multiple upstream nodes provide the same metadata field, prefer the one closest (fewest graph hops) to this node. |
| extra_key1opt | STRING | Metadata key, e.g. 'Prompt Index'. Also usable in filename_prefix as %extra:Prompt Index%. Fill this in and another pair appears below. | |
| extra_value1opt | STRING | Metadata value. Type it, or wire it from another node β numbers and strings are both accepted. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| filename | STRING | Filename of the last image saved this run, including extension. |
| filepath | STRING | Full absolute path of the last image saved this run. |