π° Load Image - v1 /i
The stock Load Image, plus a filename you can actually use
- IMAGE
- MASK
- File Name
Let's be honest about what this is: it's ComfyUI's built-in LoadImage, subclassed with two small upgrades. You reach for it because it's there (it ships in the MaraScott pack), not because it's revolutionary. But the upgrades are genuinely handy, so it's worth knowing what you're getting instead of clicking the default.
What's different from stock
Two things:
- It walks subfolders. The standard loader only shows files sitting directly in your
input/directory. This one recursively lists everything underinput/, so you can keep your reference images organised in subfolders and still pick them from the widget. Small quality-of-life win, real if your input folder is a mess (which, let's face it, yours is). - It gives you a filename output. Beyond the usual
IMAGEandMASK, it adds aFile Namestring output. That's the killer feature in disguise - you can wire it into a save node's filename field, a text display node, or anywhere you want to echo "which image did I just load" without retyping it.
There's also a quiet robustness hack in the code: if the normal loader chokes on a file (the classic case is an image with an alpha channel it can't handle), it falls back to a manual RGBA path, converts the alpha to a mask, and loads anyway. Loaders that crash on transparent PNGs are a real annoyance, so this quietly fixing them is nice.
The inputs and outputs, straight from the schema
image- the only input you set: a dropdown of every image in your input folder (and subfolders), with the usual upload button.IMAGE- the loaded pixels, wires into anything that takes an image.MASK- black/white mask (from alpha if the image had one).File Name- the string output, filename with the extension stripped by default. Wire it to save nodes or into prompt text.
Where it earns its keep
The File Name output is the reason to use this over the stock node. If you're building a workflow that loads a reference, inpaints or upscales it, and saves the result, being able to push the original filename into the output path means no more output_0001.png confusion. It also plays nicely with the pack's Text Concatenate node if you want to build filename_up2x.png style names.
Install
It's part of the MaraScott pack, so install once and everything in the pack shows up:
cd ComfyUI/custom_nodes
git clone https://github.com/MaraScott/ComfyUI_MaraScott_Nodes
Restart ComfyUI (or use ComfyUI Manager β search "MaraScott" β install). No extra dependencies beyond the pack's own requirements - Manager handles those, or the pack's requirements.txt (pillow, torch basics, plus the pack's other deps) if you install by hand.
One honest caveat: because it re-lists the input directory, it's a hair slower than the stock node on folders with thousands of files, and you'll get the same "hashed filename" behaviour on re-run as any ComfyUI loader. That's the whole list of complaints. For a node whose entire job is "load image, remember the name," it does the job.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| image | COMBO | 1 options: example.png |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | β |
| MASK | MASK | β |
| File Name | STRING | β |