ποΈ Load Images from Folder
Batch-load a whole folder of images without 200 clicks
- IMAGE
The name is doing honest work: this node loads every image in a folder and hands them to the graph as a list of images, in one run. No clicking through files one at a time, no drag-and-drop. If you've ever sat there feeding 300 screenshots into an img2img or upscaling workflow one by one, this is the node you've been looking for.
This is genuinely what people use it for. In a r/comfyui thread on automating bulk upscaling, the answer that got the nod was exactly this node: "I'm using 'Load Images from Folder' from ComfyUI-NeuralMedia" - the "set the queue count, walk away, come back to a finished folder" workflow.
How it works
Under the hood it's simple and fast. Point it at a directory, and it:
- filters to
.jpg,.jpeg,.png,.webp(that's the whole menu - no.gif, no.bmp), - sorts them alphabetically,
- applies EXIF transpose so phone photos come out the right way up,
- converts each to an RGB tensor normalized to 0β1, and returns one image per file.
The output is a list of images rather than a single batched tensor, which matters for wiring: list outputs let you loop, but some nodes downstream expect a single batched IMAGE. If something complains, batch it first (a batch/stack node fixes it in one hop).
The inputs
Three optional knobs, and only one you'll set on a normal run:
- directory (required) - a real filesystem path like
/home/you/images/input, not a ComfyUI input-folder path. This is the #1 beginner stumble. - max_images - cap how many files get loaded. Default
0means everything. - skip_images - skip the first N files. Handy for resume-after-a-crash or splitting a folder into chunks.
- reload - this one is subtle. ComfyUI caches node results so the graph doesn't re-read files every run. Flip
reloadon and the node re-executes every time, which is exactly what you want if the folder is changing between runs.
Install
ComfyUI Manager β Install Custom Nodes β search ComfyUI-NeuralMedia, or:
cd ComfyUI/custom_nodes
git clone https://github.com/YarvixPA/ComfyUI-NeuralMedia
cd ComfyUI-NeuralMedia
pip install -r requirements.txt
Restart ComfyUI after. The pack comes from YarvixPA, the same person who publishes the FLUX.1-Fill-dev-GGUF models - a small personal pack, and this folder loader is one of its more practical bits.
Gotchas
- "Directory '...' cannot be found" or "No files in directory '...'" - those are the node's actual error messages, and both mean the path is wrong or the folder only holds files it doesn't read. Check the path, and remember the extension filter.
- Silent gaps in big runs. The node sorts alphabetically, not by modification time, and skips subdirectories entirely. If your folder has mixed file types or subfolders, what you get back may not be what you expect.
- Subdirectories are ignored - only flat files count.
Compared to the famous alternatives - WAS Node Suite's batch loader, Inspire Pack's Load Image Batch From Dir - this one's pitch is simplicity: whole folder in one shot, no incremental index to babysit. For "process everything, then stop," that's the right shape.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| directory | STRING | β | |
| max_imagesopt | INT | 0 | β |
| skip_imagesopt | INT | 0 | β |
| reloadopt | BOOLEAN | false | β |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | β |