Nodes/Comfyui-TOO-Pack/πŸ“ TOO Image Metadata
ComfyUI Node

πŸ“ TOO Image Metadata

Build the A1111/Civitai block your saved PNG deserves

By tetsuoo-onlineΒ·Created 9 months agoΒ·Updated about a month agoΒ· 5
πŸ“ TOO Image Metadata
  • metadata
  • metadata
β—„positiveβ–Ί
β—„negativeβ–Ί
β—„seedβ–Ί
β—„stepsβ–Ί
β—„cfgβ–Ί
β—„sampler_nameβ–Ί
β—„schedulerβ–Ί
β—„modelβ–Ί
β—„lorasβ–Ί
β—„customβ–Ί

Here's a fact most people learn the hard way: ComfyUI's default SaveImage embeds the workflow graph, but it does not write the flat A1111-style parameters block - the prompt, settings, model name, and LoRA hashes as a single string - that Civitai's uploader actually auto-detects to link your resources. If you post to Civitai and want your model and LoRAs auto-linked, you need a node that writes that block. TOO Image Metadata is the builder for exactly that.

You use it as a construction step, not a terminal node. Feed it your prompt, settings, and model/LoRA names, and it produces a METADATA object - but it also does two clever things: it computes real hashes, and it can edit existing metadata instead of just building from scratch.

How it works. The required fields (positive, negative, seed, steps, cfg, sampler_name, scheduler) plus optional model, loras, custom, and an optional metadata input let you either start fresh or layer onto metadata that came from a loader (this pack's Smart Image Loader extracts metadata from disk - wire it in and edit it here). Empty fields are ignored, so existing values survive; type a single space " " into a field to deliberately erase it. For model, the node finds the checkpoint on disk and computes its SHA-256 hash (first 10 chars), producing the Model hash: value Civitai matches. For loras (one per line), it computes each file's Civitai AutoV3-compatible hash - which hashes the safetensors payload while excluding the header metadata, exactly how A1111/Civitai compute theirs - and emits Lora hashes: "name: hash, ...".

Inputs and outputs. All fields are strings, so you can type them, or wire in extracted values from elsewhere. One output, metadata, which plugs into the pack's TOO Smart Image Saver. The author's own note is worth repeating: the model field supports one model (the [Model hash: …, Model: name] syntax); there's no clean multi-model story, so don't fight it.

Install.

cd ComfyUI/custom_nodes
git clone https://github.com/tetsuoo-online/Comfyui-TOO-Pack

or ComfyUI Manager β†’ "Comfyui-TOO-Pack" β†’ restart.

Why bother. The KB's metadata doc makes the trade plain: Civitai "works best with A1111-style parameters metadata plus matchable resource information," and the default node doesn't produce it. This node, chained into the advanced saver, is that missing piece - a workflow-in-the-file and a Civitai-friendly parameter block, both. Just remember the format caveat: that block only survives in PNG (or as EXIF in WebP/JPEG via the saver), so keep your masters PNG.

CategoryπŸ”΅TOO-Pack/image

Inputs (11)

NameTypeDefaultDescription
positiveSTRINGβ€”
negativeSTRINGβ€”
seedSTRINGβ€”
stepsSTRINGβ€”
cfgSTRINGβ€”
sampler_nameSTRINGβ€”
schedulerSTRINGβ€”
modeloptSTRINGβ€”
lorasoptSTRINGβ€”
customoptSTRINGβ€”
metadataoptMETADATAMΓ©tadonnΓ©es existantes Γ  Γ©diter

Outputs (1)

NameTypeDescription
metadataMETADATAβ€”