Nodes/😸 YFG Comical Nodes/🐯 YFG CivitAI MetaSave
ComfyUI Node

🐯 YFG CivitAI MetaSave

Saves images with full A1111-compatible CivitAI metadata (model, LoRA, embedding hashes, sampler settings, prompts) so CivitAI automatically populates resources and generation info. Supports PNG, JPEG, and WebP. Replaces the two-node SaveImageWithMetaData + CreateExtraMetaData combo.

By gonzaluΒ·Created 2 years agoΒ·Updated 10 days agoΒ· 29
🐯 YFG CivitAI MetaSave
  • images
    β—„filename_prefixComfyUIβ–Ί
    β—„subdirectory_nameβ–Ί
    β—„output_formatpng_with_jsonβ–Ί
    β—„qualitymaxβ–Ί
    β—„metadata_scopefullβ–Ί
    β—„include_batch_numfalseβ–Ί
    β—„prefer_nearesttrueβ–Ί
    β—„extra_key1β–Ί
    β—„extra_value1β–Ί
    β—„extra_key2β–Ί
    β—„extra_value2β–Ί
    β—„extra_key3β–Ί
    β—„extra_value3β–Ί
    β—„extra_key4β–Ί
    β—„extra_value4β–Ί
    CategoryYFG

    Inputs (16)

    NameTypeDefaultDescription
    imagesIMAGEThe images to save.
    filename_prefixSTRINGComfyUIPrefix for the saved filename. Supports tokens: %date:yyyy-MM-dd%, %seed%, %pprompt:32%, %nprompt:32%, %model%, %width%, %height%.
    subdirectory_nameSTRINGOptional sub-folder inside the output directory. Supports %date:yyyy-MM-dd% tokens. Leave blank for the default output folder.
    output_formatCOMBOpng_with_jsonImage format to save. The *_with_json variants also write a sidecar .json file containing the raw workflow.
    qualityCOMBOmaxOutput quality: max=100 (lossless WebP), high=80, medium=60, low=30. Ignored for PNG.
    metadata_scopeCOMBOfullfull – 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
    include_batch_numBOOLEANfalseAppend a 5-digit batch index to the filename when saving multiple images.
    prefer_nearestBOOLEANtrueWhen multiple upstream nodes provide the same field, prefer the one closest (fewest hops) to this node.
    extra_key1optSTRINGCustom metadata key 1
    extra_value1optSTRINGCustom metadata value 1
    extra_key2optSTRINGCustom metadata key 2
    extra_value2optSTRINGCustom metadata value 2
    extra_key3optSTRINGCustom metadata key 3
    extra_value3optSTRINGCustom metadata value 3
    extra_key4optSTRINGCustom metadata key 4
    extra_value4optSTRINGCustom metadata value 4

    Outputs (0)

    No outputs