连环画分页浏览
Flip through a comic page by page inside ComfyUI
- images
- page_image
- page_info
This one is the minimal utility of the comic set, and it does exactly one job: pull a single page out of a comic image batch so you can look at it with a plain Preview Image node. 连环画分页浏览 ("page-by-page browsing") is the cheap preview loop - bump a number, see one page, repeat - before you bother exporting a full HTML viewer.
How it works
It takes the IMAGE batch from DoubaoComicBookNode.comic_images, slices out one frame by page_index, and returns it as a single-image IMAGE tensor. page_index is 1-based (page 1 = first panel). The loop toggle is the fun part: with loop on (the default), page 5 on a 3-page comic wraps to page 2 instead of erroring - handy for cycling through panels indefinitely. With loop off it just clamps to the first or last page. The slice is forced into contiguous memory, which avoids weird view-slicing glitches that some upstream nodes can introduce.
Nothing about it is fancy, and that's the point. It's local, instant, and free - no API calls, no key, no generation cost. Perfect for checking whether a specific scene came out right without downloading the whole batch.
Inputs and outputs
- images (required) - the comic IMAGE batch.
- page_index - 1-based page number (1–9999), default 1.
- loop - wrap out-of-range pages (default true).
Outputs are page_image (that single page as an IMAGE - wire it straight into a Preview Image node) and page_info (a string like "第 2/6 页" telling you which page you're looking at, useful if you're logging or chaining it into a text display).
Install & setup
Same pack as the rest of the comic tools:
cd ComfyUI/custom_nodes
git clone https://github.com/xuchenxu168/ComfyUI_doubao_seed
cd ComfyUI_doubao_seed
pip install -r requirements.txt
Restart ComfyUI and it appears under Ken-Chen/Doubao.
Gotchas
The honest limit: it's page selection, not a real reader. To actually flip through panels you'll bump page_index and re-queue, which is fine for spot-checking and tedious for reading a whole story. If you find yourself scrolling through a 12-page comic this way, that's the moment to wire up ComicHTMLViewerNode + the embedded preview instead - same source batch, a real book experience, and it doesn't cost anything extra to build. There's no text preview here either; if you want to see narration next to a page, the HTML viewer is the tool.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | — | |
| page_index | INT | 11–9999 | — |
| loop | BOOLEAN | true | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| page_image | IMAGE | — |
| page_info | STRING | — |