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.
π§ 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)
| Name | Type | Default | Description |
|---|---|---|---|
| mode | COMBO | Inspect | Inspect reads metadata; Embed writes a tensor + JSON dict to disk. |
| path | STRING | Inspect: 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. | |
| imageopt | IMAGE | Inspect: 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_jsonopt | STRING | Embed mode: JSON object of metadata fields to attach. Duplicate keys, non-finite numbers, and malformed JSON are rejected. | |
| overwriteopt | BOOLEAN | false | Embed only: allow replacing an existing destination PNG. Off preserves existing files and reports a collision. |
Outputs (12)
| Name | Type | Description |
|---|---|---|
| prompt_positive | STRING | Positive prompt extracted from the file's metadata. |
| prompt_negative | STRING | Negative prompt extracted from the file's metadata. |
| seed | STRING | Seed value if present. |
| steps | STRING | Sampler step count if present. |
| cfg | STRING | CFG scale if present. |
| sampler | STRING | Sampler name if present. |
| model | STRING | Model / checkpoint reference if present. |
| loras_json | STRING | LoRAs referenced in the metadata, encoded as JSON. |
| width | STRING | Image width in pixels. |
| height | STRING | Image height in pixels. |
| raw_metadata_json | STRING | Full raw metadata as JSON β for debugging or downstream tools. |
| image | IMAGE | Source image tensor. |