Load Image [LP]
Load Image [LP] — ComfyUI Node Guide
- IMAGE
- MASK
- Filename STRING
Core ComfyUI's Load Image node has been the same for years: pick a file from a dropdown, get an IMAGE and a MASK back. This LevelPixel version does exactly that job, plus one thing the stock node doesn't - it also tells you the filename of what you loaded.
What it's for
The README calls it plainly: "a new image loading node that can retrieve the name of the files you load into your workflow." That third output sounds small until you're doing anything automated - naming a save file after its source, logging which input produced which result, or wiring the filename into a JSON blob you're tracking through a pipeline. Stock Load Image gives you pixels and nothing else; if you needed the filename too, you were stuck parsing it out some other way or tracking it manually. This node just hands it to you.
If you're already using this pack's iterator nodes (Iterator, GetIteratorDataImageFolders, ImageDataIterator) or its batch loader (Image Loader From Path) to work through a folder of images, having the filename travel alongside the image data is what lets you keep everything traceable back to its source as it moves through the rest of your graph.
Inputs and outputs
image- an enum populated from files already available in ComfyUI's input listing (the same file picker you'd see on the stock node).
Outputs: IMAGE, MASK, Filename STRING - the loaded image, its alpha mask, and the source filename as a plain string.
Installing it
ComfyUI Manager: search "ComfyUI-LevelPixel" (listed as "Level Pixel"), install, restart. Manual route: cd ComfyUI/custom_nodes && git clone https://github.com/LevelPixel/ComfyUI-LevelPixel.git, restart ComfyUI. Nothing to download beyond the node code - this is a drop-in swap for the stock loader, no extra dependencies.
Common issues
Because this is a near-identical twin of ComfyUI's built-in Load Image, the most common confusion is just having both in your node search and grabbing the wrong one out of habit - if you're missing the Filename STRING output you expected, double check you actually placed the LevelPixel version and not the core one; they'll look nearly the same in the node picker.
This node loads a single image, not a batch - if you need to cycle through a whole folder automatically, this isn't the one for that; reach for Image Loader From Path in this same pack instead, which is built for pulling multiple images by path with an index you can step through across queue runs.
Beyond that, this behaves exactly like the stock loader for any file-type or dimension quirks - if an image won't load, that's almost always a stock-ComfyUI-level issue (unsupported format, corrupted file) rather than anything specific to this node's extra filename output.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| image | COMBO | 1 options: example.png |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |
| MASK | MASK | — |
| Filename STRING | STRING | — |