ComfyUI Node
kubakub load images from dir
Loads the images of a folder, with their names, for batch jobs: each image runs through the graph on its own (list outputs), or all together as one batch. Can filter by name and skip images that already have a finished .glb.
kubakub load images from dir
- IMAGE
- MASK
- filename
- subfolder
- source_path
- total_count
- current_index
- image_batch
- mask_batch
- loaded_count
◄directory►
◄image_load_cap1►
◄start_index0►
◄load_alwaysfalse►
◄include_subfolderstrue►
◄subfolder_prefixtrue►
◄name_filter►
◄skip_existing_in►
◄batch_fitresize_to_first►
Categorykubakub/utils
Inputs (9)
| Name | Type | Default | Description |
|---|---|---|---|
| directory | STRING | The folder to load .jpg, .png, .webp and .bmp images from, sorted by name (frame_2 before frame_10). Empty = a built-in sample folder: 12 frames of the sample facade. | |
| image_load_capopt | INT | 1 | How many images to load per run. 0 = all of them; the default 1 loads one image. |
| start_indexopt | INT | 00–18446744073709550000 | Which image to start at (0 = the first), counted after the name filter and skipping. |
| load_alwaysopt | BOOLEAN | false | Reload on every Queue. Off reloads only when the settings or the folder's files change. |
| include_subfoldersopt | BOOLEAN | true | Also load images from folders inside the folder. |
| subfolder_prefixopt | BOOLEAN | true | Put the subfolder name in front of the filename output (subfolder_name), so names from different folders do not clash. |
| name_filteropt | STRING | Only load files whose name contains this text (any case); * and ? work as wildcards. Empty = all files. | |
| skip_existing_inopt | STRING | A folder of finished .glb files: images that already have a .glb of the same name there are skipped. Empty = skip nothing. | |
| batch_fitopt | COMBO | resize_to_first | image_batch / mask_batch: how images of other sizes join the first one's size. The list outputs are unchanged. |
Outputs (10)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | one image per list item |
| MASK | MASK | one mask per list item (1 = transparent) |
| filename | STRING | each image's name without extension (with the subfolder in front when subfolder_prefix is on) |
| subfolder | STRING | each image's subfolder inside the folder (empty for the folder itself) |
| source_path | STRING | each image's full file path |
| total_count | INT | how many images the folder has after the filter and skipping |
| current_index | INT | the index the loading started at |
| image_batch | IMAGE | all loaded images as one batch |
| mask_batch | MASK | all masks as one batch |
| loaded_count | INT | how many images this run loaded (the frames in image_batch) |