凤希AI - 图像管理器V2
Overwrite control, custom numbering, and deletion
- 图片
- 文件夹路径
- 图片总数
- 图片
- 刷新标记
FxAiImageManagerV2 is the same folder-backed image library as the original (browser panel, upload, reorder, auto-numbered files under ComfyUI/fxai/image/), with the batch-workflow rough edges filed off. The pack's README is blunt about it: V2 exists because V1 had material-loading bugs in batch scenarios. If you're building a production loop - the kind that saves generated frames into the library every iteration and needs to overwrite the previous run - this is the version to reach for.
The two headline additions are on the save side, and both are about controlling filenames rather than accepting the auto-number. The original always writes to the next free number, which means re-running a workflow spawns duplicate 010.png, 011.png... forever. V2 lets you take over.
What's new vs. V1
- 文件名序号 (filename number) - force the next save to start at a specific number instead of the auto-increment. Combined with the overwrite switch, this is how you make a batch pipeline re-write the same files each run.
- 启用文件名覆盖 (enable filename overwrite, default true) - when set, the node writes to the number you gave it even if a file with that name exists, replacing it. That's the "fixed iteration" behavior batch production wants: run 3 of your loop overwrites run 2's frames rather than piling up 300 files.
- A delete HTTP route (
/fxai/image/v2/delete) the browser panel can use to remove individual images. - A link to the pack's
fxai_task_store, so saved filenames are recorded in a task store that downstream workflow steps can consult.
Everything else carries over: 目录 picks the library subfolder, feeding an 图片 tensor saves frames to disk as numbered PNGs, and the node reports 文件夹路径, 图片总数, the image passthrough, and 刷新标记. One small output difference from V1: V2 drops the newline-joined 文件列表 string - you get the folder path, the count, the image, and the refresh marker, and not much else.
Installing it
Part of fxai-toolkit (凤希AI, MIT). Install via ComfyUI Manager (search "fxai-toolkit") or:
cd ComfyUI/custom_nodes
git clone https://github.com/fxai666/fxai-toolkit
# restart ComfyUI
No models. Like V1 it depends on ComfyUI's web server for the panel and HTTP routes. The pack auto-installs soundfile and psutil on first load. Chinese labels; support via the author's QQ group (775649071) and Bilibili.
Where people get burned
The overwrite switch is a loaded weapon - with 启用文件名覆盖 on and 文件名序号 set to 0, every run silently destroys the previous run's 000.png, 001.png... There's no recycle bin, so back up the library folder before you let an automated loop overwrite it. Also remember the two versions are separate libraries in the sense that V2's reordering and delete are its own routes; mixing V1 and V2 nodes against the same folder works on disk but the browser panels won't see each other's pending changes.
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| 目录 | STRING | sucai | — |
| 图片opt | IMAGE | — | |
| 刷新标记opt | INT | — | |
| 文件名序号opt | INT | — | |
| 启用文件名覆盖opt | BOOLEAN | true | — |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| 文件夹路径 | STRING | — |
| 图片总数 | INT | — |
| 图片 | IMAGE | — |
| 刷新标记 | INT | — |