从Krita获取数据 (Fetch From Krita)
The other node with this exact job — same pack, same schema as Open In Krita
- image
- mask
- image
- mask
Worth saying plainly up front: this node and this pack's Open In Krita are, as far as their published interface goes, identical twins. Same required fields (image, active, max_wait_time), same optional mask, same two outputs (image, mask). The pack's own README even lists both under the same display name, "从Krita获取数据 (Fetch From Krita)." That's a real, checkable quirk of this pack rather than something to paper over - if you land on this node from a shared workflow and only find its sibling searchable in Manager (or vice versa), they should do the same job.
What it does
Same mechanism as Open In Krita: hand it an image (and optionally a mask), and if active is on, it sends that image out to Krita and pauses your ComfyUI graph until you finish editing and send it back - or until max_wait_time elapses. Whatever comes back flows onward through the node's image and mask outputs. This is the "fix it by hand" step for problems that are genuinely faster to solve with a brush than by re-rolling a prompt: a stray extra finger, a mask edge that needs manual correction, a small detail generation keeps getting wrong.
Like its sibling, this is a bridge to a separate Krita-side plugin that this pack ships specifically for this purpose - it isn't the same integration as Acly's well-known Krita AI Diffusion plugin (the standard way most people connect Krita and Stable Diffusion), so don't expect one to substitute for the other. If you already have Krita AI Diffusion installed, that's a different connection and won't make this node work on its own.
The inputs and outputs that matter
image(required, IMAGE) - sent to Krita.active(required, BOOLEAN, default true) - the master switch; off just passes the image through untouched.max_wait_time(required, FLOAT, default 3600, range 60–86400 seconds) - how long the node waits for you before giving up and moving on.mask(optional, MASK) - carried along for inpaint-style round trips.- Outputs:
image,mask- what comes back from Krita, or the original if the round trip doesn't complete.
How to install it
ComfyUI Manager: search "ComfyUI-Danbooru-Gallery", install, restart. Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/Aaalice233/ComfyUI-Danbooru-Gallery.git
cd ComfyUI-Danbooru-Gallery
pip install -r requirements.txt
Restart ComfyUI. The Python node loading is only step one - this pack's own Krita-side plugin has to be installed and connected before this actually does anything.
Common issues & troubleshooting
Nothing happens on the Krita side. Per the pack's own FAQ: check that its Krita plugin is actually installed, and check the log next to this node's install/reinstall button - that's built in for exactly this failure mode.
You installed this node instead of Open In Krita (or the reverse) and something in a shared workflow doesn't line up. Given the identical schema and shared display name, if a workflow you downloaded uses the sibling node and you only have this one, the safest move is to check whether Manager can install the missing one directly rather than assuming they're interchangeable inside a saved workflow file - ComfyUI matches nodes by class name, not by display name or behavior.
The graph sits waiting far longer than expected. That's max_wait_time, defaulting to a full hour - lower it if you don't want a run idling that long waiting on a manual edit you might not get to right away.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| active | BOOLEAN | true | — |
| max_wait_time | FLOAT | 360060–86400 | 最长等待时间(秒):60秒-24小时,默认1小时 |
| maskopt | MASK | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| mask | MASK | — |