ComfyUI Node
Load Image From Folder
Loads a single image from a directory or direct file path without resizing, ideal for queues and vision LLMs.
Load Image From Folder
- IMAGE
- MASK
- filename
- filepath
- index
- total_images
◄path►
◄index0►
◄sort_byname►
◄reversefalse►
◄subfoldersfalse►
Categoryxenodes/image
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| path | STRING | Path to a directory containing images, or a direct image file path. | |
| index | INT | 00–18446744073709550000 | Image index. Supports auto-incrementing / randomizing via control_after_generate for batch queue runs. |
| sort_by | COMBO | name | Sorting method for files in the directory. |
| reverseopt | BOOLEAN | false | Reverse the sort order. |
| subfoldersopt | BOOLEAN | false | Include images in subdirectories recursively. |
Outputs (6)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | Loaded image tensor [1, H, W, 3] without resizing. |
| MASK | MASK | Alpha mask if present, otherwise zeros. |
| filename | STRING | Filename of the loaded image. |
| filepath | STRING | Full filepath of the loaded image. |
| index | INT | Current index within the image list. |
| total_images | INT | Total count of images found. |