Nodes/Ray's Orenchi/πŸ”§ Ray's Tools: Metadata Inspector
ComfyUI Node

πŸ”§ Ray's Tools: Metadata Inspector

Read or write image generation metadata. β€’ `Inspect` β€” parses every known chunk (A1111 parameters, ComfyUI prompt / workflow graph, EXIF UserComment, sidecar text) and exposes prompt_positive, prompt_negative, seed, steps, cfg, sampler, model, LoRAs, dimensions, and the raw JSON blob. β€’ `Embed` β€” writes an IMAGE tensor + `metadata_json` dict back to disk at `path`, then re-parses the file for round-trip verification. In Inspect, connect a Load Image node to read that file's metadata (its source file takes precedence when found), or enter a path. Embed writes PNG only and preserves existing files unless Overwrite is enabled.

By MutantSparrowΒ·Created 4 months agoΒ·Updated 3 days agoΒ· 1
πŸ”§ Ray's Tools: Metadata Inspector
  • image
  • prompt_positive
  • prompt_negative
  • seed
  • steps
  • cfg
  • sampler
  • model
  • loras_json
  • width
  • height
  • raw_metadata_json
  • image
β—„modeInspectβ–Ί
β—„pathβ–Ί
β—„metadata_jsonβ–Ί
β—„overwritefalseβ–Ί
CategoryπŸ‘‘ Ray/πŸ”§ Tools

Inputs (5)

NameTypeDefaultDescription
modeCOMBOInspectInspect reads metadata; Embed writes a tensor + JSON dict to disk.
pathSTRINGInspect: source file, used when no source file can be traced from the connected image. Embed: explicit destination .png file on the server; relative paths use the server working directory.
imageoptIMAGEInspect: trace a Load Image node through the connected image. A resolved source file wins over `path`; otherwise the typed path is used. Embed: tensor to write.
metadata_jsonoptSTRINGEmbed mode: JSON object of metadata fields to attach. Duplicate keys, non-finite numbers, and malformed JSON are rejected.
overwriteoptBOOLEANfalseEmbed only: allow replacing an existing destination PNG. Off preserves existing files and reports a collision.

Outputs (12)

NameTypeDescription
prompt_positiveSTRINGPositive prompt extracted from the file's metadata.
prompt_negativeSTRINGNegative prompt extracted from the file's metadata.
seedSTRINGSeed value if present.
stepsSTRINGSampler step count if present.
cfgSTRINGCFG scale if present.
samplerSTRINGSampler name if present.
modelSTRINGModel / checkpoint reference if present.
loras_jsonSTRINGLoRAs referenced in the metadata, encoded as JSON.
widthSTRINGImage width in pixels.
heightSTRINGImage height in pixels.
raw_metadata_jsonSTRINGFull raw metadata as JSON β€” for debugging or downstream tools.
imageIMAGESource image tensor.