SD Prompt Reader Node
Github Repo:
https://github.com/receyuki/comfyui-prompt-reader-node
The ultimate solution for managing image metadata and multi-tool compatibility.
This is a subproject of the SD Prompt Reader. It helps you extract metadata from images in any format supported by the SD Prompt Reader and saves the images with additional metadata to ensure compatibility with metadata detection on websites such as Civitai.
Supported Formats
PNG
JPEG
WEBP
TXT
PNG
JPEG
WEBP
PNG
JPEG
PNG
JPEG
PNG
PNG
PNG
PNG
Naifu(4chan)
PNG
See SD Prompt Reader for details
Installation
While ZIP package is available, it is strongly recommended not to use it for installation.
Install and update via ComfyUI Manager (Recommended)
Search for SD Prompt Reader in the ComfyUI Manager and install it.
Install manually
Please make sure to install the submodules along with the main repository.
cdto thecustom_nodefolderClone this repo
git clone --recursive https://github.com/receyuki/comfyui-prompt-reader-node.gitInstall dependencies
cd comfyui-prompt-reader-node pip install -r requirements.txt
Update
When updating, don't forget to include the submodules along with the main repository.
git pull --recurse-submodulesUsage
Example Workflow
Change Log
Credits
The SD Prompt Reader node is based on ComfyUI Load Image With Metadata
The SD Prompt Saver node is based on Comfy Image Saver & Stable Diffusion Webui
The seed generator in the SD Parameter Generator is modified from rgthree's Comfy Nodes
A special thanks to @alessandroperilli and his AP Workflow for providing numerous suggestions
Description
Starting from v1.3, to support auto-detection on Civitai, calculate_model_hash will be renamed ascalculate_hash and it will be enabled by default. Due to the addition of temporary storage of the model hash values,
the first image generated after switching to the new model will take more time to calculate the hash value,
but it will not affect the generation speed afterwards until the server is restarted.
Fix the input validation of the
Parameter Generatornode #89Fix the input validation of the
Parameter Extractornode #90Fix the
Parameter Generatorunable to choose standard resolutions #82Fix the
Prompt Saverunable to correctly handle filenames containing.#80Update the
Parameter Extractornode to support parsing quoted parameters #87 @spagatticodeUpdate PyProject Toml - License #85 @haohaocreates
FAQ
Comments (2)
I really need something like this but it's broken won't work. Comfy won't detect the nodes no matter what I do. Either Comfy Manager or git clone, neither one works.
::IMPORTANT (Installation instructions for "SD Prompt Reader" node, DO NOT INSTALL IT USING COMFY MANAGER, I had an issue using manger but you can try, if failed then delete the "comfyui-prompt-reader-node" in customs node folder and follow these instructions. )::
Open File Explorer and navigate to: ComfyUI\custom_nodes\
Open Command Prompt in Custom Nodes: In the same custom_nodes folder window, click the address bar at the top. Type cmd and press Enter. A black terminal window will open.
Run the Recursive Clone Command:
Copy and paste the following command into the terminal and press Enter:
git clone --recursive https://github.com/receyuki/comfyui-prompt-reader-node.git
Why this works: The --recursive flag tells Git to automatically download the "submodule" (the missing folder) that the standard Manager install often skips.
Install Requirements:
Once the download finishes, run these commands one by one in the same terminal:
cd comfyui-prompt-reader-node
..\..\..\python_embeded\python.exe -m pip install -r requirements.txt
Note: If you get a "path not found" error for python, try just: pip install -r requirements.txt
Restart ComfyUI:
Close the terminal and restart ComfyUI. The node should now load correctly without the import error.
Verification: After restart, if you check the comfyui-prompt-reader-node folder, you should now see a subfolder named stable_diffusion_prompt_reader that is not empty (it contains python files). If it's there, the fix worked.
From here:https://civitai.com/models/2196254/simple-4in1-prompt-modes-for-zimageturbo-workflow
