From b7bb7d933742b4c955c40124796d07bba27c9bfb Mon Sep 17 00:00:00 2001 From: Rayko <71210053+Raykosan@users.noreply.github.com> Date: Mon, 3 Aug 2026 15:27:21 +0300 Subject: [PATCH] Update README.md --- README.md | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 67 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bc629cc..f44a07e 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,8 @@ git clone https://github.com/Raykosan/ComfyUI_RaykoStudio.git - v0.33.1 - clip_type 'mage' added to RS Models Loader node - v0.33.2 - Deep modification of the RS Outpaint node - v0.34.0 - Adding the RS Load Images From Dir node -- v0.34.1 - Added the 'Paste' button to the RS Load Images From Dir node +- v0.34.1 - Added the 'Paste' button to the RS Load Images From Dir node +- v0.35.0 - Added an RS Image-Prompt node @@ -216,6 +217,71 @@ In any case, you can always paste the path using the keyboard shortcut Ctrl+V. | `folder_path` | STRING | The absolute path of the processed directory. | | `number_of_files` | INT | The total number of files found matching the filter in the directory. | + +
+ 🦊 RS Image-Prompt + +# 🦊 RS Image-Prompt +**A ComfyUI node that extracts the positive prompt from image metadata — instantly, without running the queue.** +Load a generated image and `RS Image-Prompt` reads back the prompt that was used to create it. It understands metadata written by ComfyUI, Automatic1111, Forge, and the rest of the RaykoStudio suite. + +Screenshot_3 + +### 🔥 Features +- **Instant extraction** — the prompt appears as soon as an image is loaded, no queue run needed +- **Three ways to load an image**: + - **drag & drop** onto the preview zone (the border highlights green while dragging) + - **click** the preview zone to open a file dialog + - **📂 UPLOAD IMAGE** button +- **Live DOM preview** of the loaded image +- **Read-only prompt view** with a one-click **📝 COPY** button +- **Toast notifications** (success / warning / error) +- **Persistent state** — selected image, prompt and node size survive page reloads and tab switches + +### 🪛 Usage +1. Add the node: **Add Node → 🦊 RaykoStudio → 🦊 RS Image-Prompt** +2. Load an image — drag & drop it onto the preview zone, click the preview, or press **📂 UPLOAD IMAGE**. +3. The extracted prompt appears in the text area automatically. +4. Connect the prompt output to the text input of the desired node (e.g. CLIP Text Encode or RS Prompts) and start generating +5. If necessary, click **📝 COPY** to copy the prompt to the clipboard. + +The node outputs the prompt as a `STRING`. Wire it into anything that accepts a text prompt: + +``` +[ RS Image-Prompt ] → prompt (STRING) → [ CLIPTextEncode ] → [ KSampler ] +``` + +### 📥 Supported Sources + +The prompt is extracted from a wide range of metadata formats, in priority order: + +| # | Source | Format | Where the prompt lives | +|---|--------|--------|------------------------| +| 1 | **ComfyUI** | PNG | `prompt` chunk (API graph) | +| 2 | **ComfyUI** | PNG | `workflow` chunk (UI graph) | +| 3 | **A1111 / Forge / SD.Next** | PNG | `parameters` text chunk | +| 4 | **RS Image-Text** | PNG | `Description` chunk | +| 5 | **Generic raw text** | PNG | `text` / `string` / `Comment` / `Title` chunks | +| 6 | **A1111 / Forge** | JPG / WebP | EXIF `UserComment` | + +**Supported file types:** `PNG`, `JPG` / `JPEG`, `WebP` +**Recognized prompt nodes** when parsing a ComfyUI graph: `CLIPTextEncode`, `RS Prompts`, `RS Image-Prompt`. + +### 🖥️ UI Overview + +| Element | Description | +|---------|-------------| +| **Text area** | Read-only, shows the extracted prompt (or a "not found" hint) | +| **📂 UPLOAD IMAGE** | Opens a file picker (PNG / JPG / WebP) | +| **📝 COPY** | Copies the prompt to the clipboard | +| **Preview zone** | Shows the loaded image; drop a file here or click to upload | +| **Toasts** | Centered popups: green = success, orange = warning, red = error | + +### 🤝 Compatibility +- ComfyUI +- Works alongside the rest of the **RaykoStudio** suite: `RS Prompts`, `RS Image-Text` +- Reads images generated by ComfyUI, Automatic1111, Forge, and other tools that embed prompt metadata +
🦊 RS Bypass Manager