
A simple standalone viewer for reading prompt from Stable Diffusion generated image outside the webui.
- Support macOS, Windows and Linux.
- Simple drag and drop interaction.
- Copy prompt to clipboard.
- Remove prompt from image.
- Export prompt to text file.
- Detect generation tool.
- Multiple formats support.
- Dark and light mode support.
PNG | JPEG | WEBP | |
---|---|---|---|
A1111's webUI | ✅ | ✅ | ✅ |
NovelAI | ✅ | ❎ | ❎ |
ComfyUI* | ✅ | ❎ | ❎ |
Naifu(4chan) | ✅ | ❎ | ❎ |
* Limitations apply. See format limitations.
If you are using a tool or format that is not on this list, please help me to support your format by uploading the original file generated by your tool as a zip file to the issues, thx.
Download executable from GitHub Releases
I'm pretty sure linux users can figure things out without an executable.
- Make sure you have the tkinter package installed in your Python.
If not, install the python3-tk package with package managers.
e.g.sudo apt-get install python3-tk
for Debian-based distributions - Clone this repo.
or download repo as a zip.
git clone https://github.com/receyuki/stable-diffusion-prompt-reader.git
- CD to the directory and install dependencies.
cd stable-diffusion-prompt-reader pip install -r requirements.txt
- Run.
python main.py
- Open the executable file (.exe or .app) and drag and drop the image into the window.
OR
- Right click on the image and select open with SD Prompt Reader
OR
- Drag and drop the image directly onto executable (.exe or .app).
- Click "Export to txt" will generate a txt file alongside the image file.
- To save to another location, click the expand arrow and click "select directory".
- Click "Remove Data" will generate a new image file with suffix "_data_removed" alongside the original image file.
- To save to another location, click the expand arrow and click "select directory".
- To overwrite the original image file, click the expand arrow and click "overwrite the original image".
Support for comfyUI requires more testing. If you believe your image is not being displayed properly, please upload the original file generated by ComfyUI as a zip file to the issues.
- If there are multiple sets of data (seed, steps, CFG, etc.) in the setting box, this means that there are multiple KSampler nodes in the flowchart.
- Due to the nature of ComfyUI, all nodes and flowcharts in the workflow are stored in the image, including those that are not being used. Also, a flowchart can have multiple branches, inputs and outputs. (e.g. output hires. fixed image and original image simultaneously in a single flowchart) SD Prompt Reader will traverse all flowcharts and branches and display the longest branch with complete input and output.
- Add Support for more tools
- Better settings display UI
- Ability to edit and write prompt back to PNG
- Batch image processing tool
- Inspired by Stable Diffusion web UI
- Function icons from Icons8
- App icon generated using Stable Diffusion with IconsMI
- Special thanks to Azusachan for providing SD server