ComfyUI Node
Load Image Single/Batch
Load a single uploaded image or cycle through a batch of images from a folder with multiple selection modes, including range and search filtering by filename patterns.
Load Image Single/Batch
- image
- filename
- cleaned filename
◄source_modeBatch from Folder►
◄path_modePre-defined►
◄predefined_path▾►
◄manual_pathC:/path/to/your/images►
◄batch_modeincrement►
◄range_or_pattern0►
◄image_upload▾►
◄max_num_words0►
CategoryAUN Nodes/Image
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| source_mode | COMBO | Batch from Folder | Choose to load a single uploaded image or one image from a folder. |
| path_mode | COMBO | Pre-defined | Select path source: Pre-defined list or manual input. |
| predefined_path | COMBO | Select a folder from the pre-defined list. Customize via predefined_paths.local.json (recommended) or copy predefined_paths.example.json. | |
| manual_path | STRING | C:/path/to/your/images | Enter the absolute path to the image folder. |
| batch_mode | COMBO | increment | How to select the next image from the folder. Use 'search' mode to filter files by pattern using the range_or_pattern field. |
| range_or_pattern | STRING | 0 | Multi-purpose field: • For fixed/range modes: Comma-separated indices or ranges (e.g., 2,3,4-7,10) • For search mode: Search pattern supporting wildcards (*,?,[]), regex, or simple text (e.g., 'portrait*', 'img_[0-9]+', '.*face.*') |
| image_upload | COMBO | When source_mode is 'Single Image Upload', choose the file from the ComfyUI input directory. | |
| max_num_words | INT | 00–32 | Maximum number of words to keep for both filename outputs. Set to 0 for no limit. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| filename | STRING | — |
| cleaned filename | STRING | — |