docs: split English README into separate file, sync user edits
This commit is contained in:
@@ -1,16 +1,14 @@
|
||||
# SaveImageAsSDWebUI
|
||||
|
||||
[English](#english) | 中文
|
||||
|
||||
---
|
||||
|
||||
## 中文
|
||||
[English](README_EN.md)
|
||||
|
||||
### 为什么做这个节点
|
||||
|
||||
ComfyUI 默认的 SaveImage 节点把所有图片平铺在 output 目录下,文件一多就很难找。Stable Diffusion WebUI 按日期自动分目录,浏览和管理体验好很多。
|
||||
ComfyUI 默认的 SaveImage 节点把所有图片平铺在 output 目录下,文件一多就很难找,而且没有全局序号,导致批量生成文件时候不会始终按生成顺序排列文件。Stable Diffusion WebUI 按日期自动分目录,浏览和管理体验好很多。
|
||||
|
||||
这个节点的目标是把 WebUI 的按日期分目录体验带到 ComfyUI,同时保留 ComfyUI 的工作流信息嵌入(PNG 的 PngInfo、WebP 的 EXIF),并额外提供 prefix 参数来自定义子目录和文件名前缀。
|
||||
说白了就是我习惯webui了不想走出舒适区。
|
||||
|
||||
这个节点会把 WebUI 的按日期分目录和全局序号的体验带到 ComfyUI,同时保留 ComfyUI 的工作流信息嵌入(PNG 的 PngInfo、WebP 的 EXIF),并额外提供 prefix 参数来自定义子目录和文件名前缀。
|
||||
|
||||
### 用法
|
||||
|
||||
@@ -40,6 +38,7 @@ ComfyUI 默认的 SaveImage 节点把所有图片平铺在 output 目录下,
|
||||
| `abc/def/114514` | `output/abc/def/2026-05-25/11451400001-seed.webp` |
|
||||
|
||||
规则总结:
|
||||
|
||||
- 以 `/` 结尾 → 纯目录,无文件名前缀
|
||||
- 无 `/` → 纯文件名前缀,无子目录
|
||||
- 中间有 `/` → 最后一个 `/` 前是目录,后是文件名前缀
|
||||
@@ -49,51 +48,3 @@ ComfyUI 默认的 SaveImage 节点把所有图片平铺在 output 目录下,
|
||||
- **PNG**:通过 PngInfo 写入 prompt 和 workflow
|
||||
- **WebP**:通过 EXIF 写入 prompt 和 workflow(Make/ImageDescription 标签)
|
||||
- **JPG**:不支持元数据嵌入
|
||||
|
||||
---
|
||||
|
||||
## English
|
||||
|
||||
### Why this node exists
|
||||
|
||||
ComfyUI's built-in SaveImage dumps all files flat into the output directory, which becomes unmanageable quickly. Stable Diffusion WebUI organizes images by date automatically, making browsing much easier.
|
||||
|
||||
This node brings WebUI's date-based directory structure to ComfyUI while preserving ComfyUI's workflow metadata embedding (PngInfo for PNG, EXIF for WebP), and adds a prefix parameter for custom subdirectories and filename prefixes.
|
||||
|
||||
### Usage
|
||||
|
||||
Replace the built-in SaveImage node. Connect the KSampler's seed output to the seed input.
|
||||
|
||||
### Parameters
|
||||
|
||||
| Parameter | Description |
|
||||
|---|---|
|
||||
| `images` | Images to save |
|
||||
| `seed` | Seed value, embedded in filename (e.g. `00001-12345.webp`) for easy cross-reference with generation settings |
|
||||
| `filename_prefix` | Controls both subdirectory and filename prefix, see rules below |
|
||||
| `image_format` | Save format: png / jpg / webp |
|
||||
| `quality` | Compression quality for jpg and webp (0-100), ignored for png |
|
||||
|
||||
### Prefix rules
|
||||
|
||||
A date folder `yyyy-mm-dd` is always the direct parent of the file. Prefix paths nest above the date folder.
|
||||
|
||||
| prefix | Output path |
|
||||
|---|---|
|
||||
| `txt2img/` | `output/txt2img/2026-05-25/00001-seed.webp` |
|
||||
| `abc` | `output/2026-05-25/abc00001-seed.webp` |
|
||||
| `imgEdit/qwen` | `output/imgEdit/2026-05-25/qwen00001-seed.webp` |
|
||||
| `""` | `output/2026-05-25/00001-seed.webp` |
|
||||
| `abc/def/` | `output/abc/def/2026-05-25/00001-seed.webp` |
|
||||
| `abc/def/114514` | `output/abc/def/2026-05-25/11451400001-seed.webp` |
|
||||
|
||||
Rules:
|
||||
- Ends with `/` → directory only, no filename prefix
|
||||
- No `/` → filename prefix only, no subdirectory
|
||||
- Contains `/` in the middle → everything before the last `/` is directory, after is filename prefix
|
||||
|
||||
### Metadata embedding
|
||||
|
||||
- **PNG**: prompt and workflow written via PngInfo
|
||||
- **WebP**: prompt and workflow written via EXIF (Make/ImageDescription tags)
|
||||
- **JPG**: no metadata support
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
# SaveImageAsSDWebUI
|
||||
|
||||
### Why this node exists
|
||||
|
||||
ComfyUI's built-in SaveImage dumps all files flat into the output directory — no global sequence numbers, so batch-generated files don't always sort in generation order. Stable Diffusion WebUI organizes images by date automatically, making browsing much easier.
|
||||
|
||||
Let's be honest: I'm just used to WebUI and don't want to leave my comfort zone.
|
||||
|
||||
This node brings WebUI's date-based directory structure and global sequence numbering to ComfyUI while preserving ComfyUI's workflow metadata embedding (PngInfo for PNG, EXIF for WebP), and adds a prefix parameter for custom subdirectories and filename prefixes.
|
||||
|
||||
### Usage
|
||||
|
||||
Replace the built-in SaveImage node. Connect the KSampler's seed output to the seed input.
|
||||
|
||||
### Parameters
|
||||
|
||||
| Parameter | Description |
|
||||
|---|---|
|
||||
| `images` | Images to save |
|
||||
| `seed` | Seed value, embedded in filename (e.g. `00001-12345.webp`) for easy cross-reference with generation settings |
|
||||
| `filename_prefix` | Controls both subdirectory and filename prefix, see rules below |
|
||||
| `image_format` | Save format: png / jpg / webp |
|
||||
| `quality` | Compression quality for jpg and webp (0-100), ignored for png |
|
||||
|
||||
### Prefix rules
|
||||
|
||||
A date folder `yyyy-mm-dd` is always the direct parent of the file. Prefix paths nest above the date folder.
|
||||
|
||||
| prefix | Output path |
|
||||
|---|---|
|
||||
| `txt2img/` | `output/txt2img/2026-05-25/00001-seed.webp` |
|
||||
| `abc` | `output/2026-05-25/abc00001-seed.webp` |
|
||||
| `imgEdit/qwen` | `output/imgEdit/2026-05-25/qwen00001-seed.webp` |
|
||||
| `""` | `output/2026-05-25/00001-seed.webp` |
|
||||
| `abc/def/` | `output/abc/def/2026-05-25/00001-seed.webp` |
|
||||
| `abc/def/114514` | `output/abc/def/2026-05-25/11451400001-seed.webp` |
|
||||
|
||||
Rules:
|
||||
- Ends with `/` → directory only, no filename prefix
|
||||
- No `/` → filename prefix only, no subdirectory
|
||||
- Contains `/` in the middle → everything before the last `/` is directory, after is filename prefix
|
||||
|
||||
### Metadata embedding
|
||||
|
||||
- **PNG**: prompt and workflow written via PngInfo
|
||||
- **WebP**: prompt and workflow written via EXIF (Make/ImageDescription tags)
|
||||
- **JPG**: no metadata support
|
||||
Reference in New Issue
Block a user