Load Boolean From Image
Load Boolean From Image
- image
- BOOLEAN
You've got a generated image with a workflow you love, and you want to re-run it with exactly one setting changed. Load Boolean From Image is the node that pulls an on/off value out of the image's own metadata and feeds it back into your graph as a real BOOLEAN.
This is a niche utility from the comfyui-parse-image pack, which ships five siblings (Load Int, Float, String, and Combo From Image). None of them generate anything. All of them do one job: read values that were baked into a PNG when it was generated, so you can reuse those values in a fresh workflow instead of copying them by hand.
Why the metadata even exists
ComfyUI's whole sharing culture runs on embedded workflow data. When you save a generated image, the JSON of the graph that produced it is tucked inside the PNG's metadata. Drag that image back into ComfyUI and the graph reconstructs itself - that's the "workflow included" norm the community enforces. These parse nodes give you a surgical version of the same trick: instead of rebuilding the entire graph, you pull one number out of it.
It's not reading pixels, by the way. This node reads the metadata the image carries, not what the image looks like.
How it works
Feed it an image from a supported loader - the stock LoadImage works, as do LoadImageMask, Inspire's LoadImage //Inspire, Crystools' "Load image with metadata", and a few others. Then write a query in the format <TITLE|TYPE|ID>.<WIDGET_NAME>: a node type or title, a dot, then the widget name you want. Load Boolean From Image looks that widget up in the workflow metadata and returns its value.
Only three inputs, and two of them barely need touching:
- image - wire this from one of the loaders above.
- query - the dotted path to the widget, e.g.
KSampler.control_after_generate. - boolean - the fallback value returned when the query finds nothing. Defaults to
false.
That last input is your safety net, and it's the input a beginner actually sets. If the image's workflow has no matching widget, you silently get false instead of an error. That's intentional - but it means a typo in the query just quietly feeds you the fallback, which is the node's most common trap.
The single output is a BOOLEAN, ready to wire into anything that takes a true/false toggle, like a control_after_generate or a conditional.
Installing it
No models, no heavy dependencies, nothing to download. That's the whole appeal - it's a tiny metadata reader, not an inference pack. Install via ComfyUI Manager (search "comfyui-parse-image"), or clone it by hand:
cd ComfyUI/custom_nodes
git clone https://github.com/shinich39/comfyui-parse-image
Restart ComfyUI, then find it under Add node > loaders > Load Boolean From Image.
Common issues
The fallback value is the whole failure mode. If you're always getting false back, either the query doesn't match the widget name exactly, or the image simply has no workflow metadata to parse - images exported without embedded workflow data have nothing for this node to read. Loaders that strip metadata won't help you. Also remember the query's first segment matches the node type or its title, so a node you renamed to "Final KSampler" answers to Final KSampler.seed, spaces and all. Get the name right and it's a quietly useful little node - probably the least-used of the five siblings, but the one you're glad for when you need it.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| query | STRING | — | |
| boolean | BOOLEAN | false | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| BOOLEAN | BOOLEAN | — |