Nodes/ComfyUI-KYNode/Load Image (Path/URL/Base64/Input)
ComfyUI Node

Load Image (Path/URL/Base64/Input)

One loader instead of three

By yorkane·Created 2 years ago·Updated 6 months ago· 10
Load Image (Path/URL/Base64/Input)
  • input_image
  • input_mask
  • image
  • mask
input_string

This is the node the pack's own README actually leads with - "Load images from URL/Path/Base64" is the first feature bullet, and this is the node behind it. Rather than one loader for local files, another for URLs, and a third for pasted base64 data, it's a single flexible input: whatever kind of string you give it, it figures out how to load an image from it.

How it fits alongside this pack's other loaders

This pack ships three ways to get an image in, and picking the right one matters: KY_ReadImage wants a single known local path and gives you back one image plus its filename stem. KY_Load_Images_from_path bulk-loads an entire directory at once, multithreaded, with sorting and filtering knobs. KY_LoadImageFrom is the flexible middle ground - one node that accepts a path, a URL, or a base64 string interchangeably, and can also take an already-loaded IMAGE/MASK straight from a native ComfyUI upload widget. Reach for this one specifically when the source isn't fixed in advance - a workflow that might get fed a local path in one run and a URL in the next, without swapping nodes.

Inputs and outputs

One required input: input_string, a multiline STRING - this is where the path, URL, or base64 data actually goes. Two optional inputs, input_image (IMAGE) and input_mask (MASK), which read as a pass-through/override path: wire in an already-loaded image (say, from ComfyUI's native upload widget) if you want this node to act as a compatibility adapter without re-fetching from a string source.

Both outputs are marked as lists: image (IMAGE) and mask (MASK). That's worth noticing even if you're only ever loading one image at a time - a single path in input_string still comes back as a list of length one, so whatever's downstream needs to handle a list, not assume a plain batched tensor.

It's also marked an output node, meaning it likely renders its own preview directly, the same way ComfyUI's stock Load Image node does.

Installing it

ComfyUI Manager: search ComfyUI-KYNode, install, restart. Or:

cd ComfyUI/custom_nodes
git clone https://github.com/yorkane/ComfyUI-KYNode

Restart ComfyUI. URL loading needs outbound network access from wherever ComfyUI's process actually runs - the same requirement as this pack's other URL-based nodes (KY_OpenAIChat, KY_ImageCompare). Local paths and base64 need nothing extra.

Common issues

Since input_string is a multiline field meant to double as path, URL, and base64 input, a long base64 blob pasted in is going to be genuinely unwieldy to look at and edit - that's expected, not a bug, just a rough edge of overloading one field for three input styles.

If you've also wired something into input_image/input_mask, the schema doesn't spell out which source wins if both are populated - treat input_string as the primary path and the image/mask inputs as a fallback or override for a specific case, and avoid relying on both being set simultaneously until you've confirmed the actual precedence for your version of the node.

Because the outputs are lists, a downstream node expecting a single batched IMAGE tensor (rather than a list) can choke on this node's output even when you only loaded one image - if you hit a type mismatch immediately after this node, check whether the next node wants list-style input or a plain batch, and adapt with this pack's own KY_AnyToList/list-handling nodes if needed.

A URL that 404s, times out, or requires authentication will fail the load - same as any HTTP fetch - and since this node accepts three very different input styles through one field, double-check you haven't accidentally left stray whitespace or quote characters around the path/URL/base64 string, which is an easy typo to make in a multiline box.

CategoryKYNode/image

Inputs (3)

NameTypeDefaultDescription
input_stringSTRING
input_imageoptIMAGE
input_maskoptMASK

Outputs (2)

NameTypeDescription
imageIMAGE
maskMASK