Skip to content

taka-pro/comfy-meta-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Comfy Meta Reader

EN · A lightweight desktop app that reads and neatly displays the generation metadata (prompt, model, sampler, seed, size, LoRA, …) embedded in AI images created with ComfyUI, A1111, Krita AI Diffusion, and more. It supports not only the SDXL family but also many configurations of various models such as ANIMA / Qwen Image.

JA · ComfyUIやA1111、Krita AI Diffusionなどで作られたAI生成画像の生成条件のメタ情報(プロンプト・モデル・サンプラー・seed・サイズ・LoRA など)を読み取って見やすく表示する軽量デスクトップアプリです。SDXL系だけでなく、ANIMA / Qwen Imageなどの様々なモデルのいろいろな構成に対応しています。

🎥 YouTube: 鷹の目週末プログラマーチャンネル · ✍️ Blog: happy-shibusawake.com · 📝 Note: takaweekendprog こちらで画像生成AIなどの解説をしています / Tutorials on AI image generation & more

English | 日本語

Comfy Meta Reader screenshot


English

Why

Existing prompt readers (e.g. SD Prompt Reader) parse the ComfyUI prompt JSON by looking for a fixed set of node class_types (CheckpointLoaderSimple, CLIPTextEncode, LoraLoader, …). ANIMA images use a different graph (UNETLoader, CLIPLoader type=qwen_image, TextEncodeQwenImageEdit, LoraLoaderModelOnly, EmptyQwenImageLayeredLatentImage), so those readers can't show the conditions.

Comfy Meta Reader uses a sampler-rooted, registry-driven parser: it starts at the final KSampler, then traces positive/negative conditioning, the model/LoRA chain, and the latent — resolving node types from a small data table (NodeRegistry). Adding a new family = adding entries to that table, not rewriting the parser.

Supported (verified on real images)

Family Status
ANIMA / Qwen Image (UNETLoader + CLIPLoader qwen_image + TextEncodeQwenImageEdit)
AnimagineXL / SDXL (CheckpointLoaderSimple + CLIPTextEncode)
Multi-LoRA + ControlNet + regional conditioning (combine / mask / area)
A1111 / SD WebUI parameters string ✅ (basic)
Flux / SD3 scaffolded (latent/loaders registered)

Extracted fields: positive / negative prompt, model (checkpoint or unet), text encoder (+type), VAE, LoRA list (with model/clip strength; model-only shows clip n/a), sampler, scheduler, steps, CFG, seed, denoise, size, ControlNet.

Usage

  1. Download ComfyMetaReader.Gui.exe from the Releases page (Windows, no install needed).
  2. Run it and drag & drop a PNG (or click Open image…).
  3. The generation conditions appear on the right. Use Copy / Copy JSON as needed.

Build from source

dotnet build -c Release
# CLI (for testing):
dotnet src/ComfyMetaReader.Cli/bin/Release/net8.0/ComfyMetaReader.Cli.dll <image.png> [--json]

Build the single-file Windows exe

dotnet publish src/ComfyMetaReader.Gui -c Release -r win-x64 `
  -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true `
  -p:EnableCompressionInSingleFile=true --self-contained true -o publish

Tech

.NET 8 · C# · Avalonia UI · MIT License.


日本語

アプリの紹介

「この画像、どんな設定で作ったんだっけ?」

Comfy Meta Reader は、AI生成画像からプロンプトやモデル、LoRA、Sampler設定などの生成情報を読み取ります。 画像をドラッグ&ドロップするだけで、生成条件をすぐに確認できる軽量でサクサク動く便利ツールです。

Comfy Meta Reader は KSampler 起点・レジストリ駆動のパーサを採用。最終 KSampler から positive/negative、model/LoRA チェーン、latent を辿り、内容を確認し、表示するシンプルな機構です。

対応状況(実画像で検証済み)

ファミリ 状態
ANIMA / Qwen Image(UNETLoader + CLIPLoader qwen_image + TextEncodeQwenImageEdit
AnimagineXL / SDXL(CheckpointLoaderSimple + CLIPTextEncode
複数LoRA + ControlNet + 領域指定(combine / mask / area)
A1111 / SD WebUI の parameters 文字列 ✅(基本対応)
Flux / SD3 雛形対応(latent/loader 登録済み)

取得項目: positive / negative プロンプト、モデル(checkpoint または unet)、テキストエンコーダ(+type)、 VAE、LoRA一覧(model/clip 強度。model-only は clip n/a)、sampler、scheduler、steps、CFG、seed、denoise、サイズ、ControlNet。

使い方

  1. Releases から ComfyMetaReader.Gui.exe をダウンロード(Windows・インストール不要)。
  2. 起動して PNG をドラッグ&ドロップ(または Open image…)。
  3. 右側に生成条件が表示されます。必要に応じて Copy / Copy JSON

ソースからビルド

dotnet build -c Release
# CLI(検証用):
dotnet src/ComfyMetaReader.Cli/bin/Release/net8.0/ComfyMetaReader.Cli.dll <画像.png> [--json]

単一ファイル exe を作る

dotnet publish src/ComfyMetaReader.Gui -c Release -r win-x64 `
  -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true `
  -p:EnableCompressionInSingleFile=true --self-contained true -o publish

技術スタック

.NET 8 · C# · Avalonia UI · MIT ライセンス。


Author / 作者・リンク

Created by 鷹の目週末プログラマー (Taka Weekend Programmer) (@taka-pro). If this tool is useful, a star ⭐ is appreciated! / 役に立ったら ⭐ をいただけると嬉しいです。

こちらで画像生成AIなどの解説をしています / I share tutorials on AI image generation and more here:

🤖 Powered by Claude Code

Acknowledgements / 謝辞

Inspired by receyuki/stable-diffusion-prompt-reader (MIT). This is an independent reimplementation focused on cross-family ComfyUI graphs (incl. ANIMA).

License

MIT © 鷹の目週末プログラマー (taka-pro)

Roadmap

  • Core engine: PNG metadata + family-agnostic ComfyUI graph parser
  • CLI verification (ANIMA / AnimagineXL / dual-region)
  • Avalonia GUI: drag & drop, image preview, copy (text/JSON), dark mode
  • Single-file self-contained win-x64 exe (compressed, ~43 MB)
  • App icon
  • JPEG / WEBP metadata, workflow chunk support
  • Flux / SD3 verification on real images
  • Export to file (txt/json), A1111-style string conversion
  • GitHub Actions: auto-build win-x64 release exe

About

Lightweight Windows app to read AI-image generation metadata (prompt, model, LoRA, sampler, seed…) from ComfyUI / A1111 / Krita AI Diffusion — supports SDXL and ANIMA (Qwen Image).

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors