How receyuki/stable-diffusion-prompt-reader works
Stable Diffusion Prompt Reader is a desktop GUI and CLI for extracting generation prompts and settings from images, then viewing or exporting, clearing, and editing that metadata. The main workflow is input image → format detection and parsing → prompt/parameter display or file operation. The README documents additional display and editing capabilities; source excerpts are partial, so links for unsampled GUI actions are limited to the documented workflow.
Main entry points: app.py Desktop GUI · image_data_reader.py Image Data Reader · format Format Adapters · cli.py Command Line
Components 16
User Interfaces
- Desktop GUI
sd_prompt_reader/app.py - Command Line
sd_prompt_reader/cli.py
Metadata Processing
- Image Data Reader
sd_prompt_reader/image_data_reader.py - Format Base
sd_prompt_reader/format/base_format.py
Format Support
- Format Adapters
sd_prompt_reader/format - A1111 Parser
sd_prompt_reader/format/a1111.py - ComfyUI Parser
sd_prompt_reader/format/comfyui.py - InvokeAI Parser
sd_prompt_reader/format/invokeai.py - NovelAI Parser
sd_prompt_reader/format/novelai.py
Prompt Presentation
- Prompt Viewer
sd_prompt_reader/prompt_viewer.py - Parameter Viewer
sd_prompt_reader/parameter_viewer.py - Text Editor
sd_prompt_reader/textbox.py - Status Bar
sd_prompt_reader/status_bar.py
Other components
- User
- Image Files
- Exported Files
Connections 18
- User → Desktop GUI: opens or drops
- User → Command Line: runs command
- Desktop GUI → Image Data Reader: reads image metadata
- Command Line → Image Data Reader: reads and writes
- Image Files → Image Data Reader: provides image
- Image Data Reader → Format Adapters: selects parser
- Image Data Reader → Format Base: uses format model
- Format Adapters → A1111 Parser
- Format Adapters → ComfyUI Parser
- Format Adapters → InvokeAI Parser
- Format Adapters → NovelAI Parser
- Image Data Reader → Desktop GUI: returns prompt data
- Desktop GUI → Prompt Viewer: displays prompts
- Desktop GUI → Parameter Viewer: displays settings
- Desktop GUI → Text Editor: edits prompt
- Desktop GUI → Status Bar: reports status
- Command Line → Exported Files: exports or saves
- Desktop GUI → Exported Files: exports or edits