ComfyUI Node
Load Images (Batch)
Iterates through and loads image files (including EXR/HDR) from a directory in batches.
Load Images (Batch)
- image
- mask
- filename
- path
◄directorypath/to/folder►
◄pattern*►
◄include_subfoldersfalse►
◄batch_index0►
◄batch_size-1►
◄alpha_bleedtrue►
◄blur_radius0.0►
◄invert_maskfalse►
◄exr_tone_mapfalse►
CategoryLeputen-Utils/Image
Inputs (9)
| Name | Type | Default | Description |
|---|---|---|---|
| directory | STRING | path/to/folder | The absolute path to the directory containing files to load. |
| pattern | STRING | * | Filename filter pattern using glob syntax. Examples: • * = all files • *_a.dds = files ending in _a.dds • texture_* = files starting with texture_ Multiple patterns: Use semicolon (;) to match multiple patterns: • *_a.dds;*_n.dds = albedo and normal maps |
| include_subfolders | BOOLEAN | false | If enabled, recursively scans subdirectories for matching files. |
| batch_index | INT | 0 | Current batch index. Connect an external iterator for automatic incrementing. |
| batch_size | INT | -1 | Number of files to load per batch. Set to -1 to load ALL files at once. |
| alpha_bleed | BOOLEAN | true | Enable alpha bleeding to prevent halo artifacts around transparent areas. |
| blur_radiusopt | FLOAT | 0.00–10 | Apply blur during alpha bleeding for smoother transitions. |
| invert_maskopt | BOOLEAN | false | Invert the output mask (white becomes black and vice-versa). |
| exr_tone_mapopt | BOOLEAN | false | For EXR files: Apply Reinhard tone mapping. If disabled, raw HDR values are preserved. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| mask | MASK | — |
| filename | STRING | — |
| path | STRING | — |