ComfyUI Node
Load Media (img, vid or dir)
Loads media from various sources with advanced options for sequence handling. Key Features: - Supports images, directories, videos, archives (zip/tar/7z), and URLs - Smart sorting options including visual similarity-based ordering - Seamless loop creation with loop_first_frame
Load Media (img, vid or dir)
- image
- mask
- WIDTH
- HEIGHT
- COUNT
- FILE_NAME
- FILE_PATH
- PARENT_DIRECTORY
- FPS
- AUDIO
- PROMPT
- METADATA_RAW
◄path—►
◄resize_images_to_firsttrue►
◄image_load_cap0►
◄start_index0►
◄start_index_use_seedfalse►
◄seed0►
◄error_after_last_framefalse►
◄skip_n0►
◄sortNone►
◄reverse_orderfalse►
◄loop_first_framefalse►
◄force_rate0►
Categoryimage
Inputs (12)
| Name | Type | Default | Description |
|---|---|---|---|
| path | STRING | Path to media file(s). Can be an image, directory of images, video file, zip/tar archive, URL, or wildcard pattern for images (e.g. *.png). | |
| resize_images_to_first | BOOLEAN | true | Resize all images to match the dimensions of the first image in the sequence. |
| image_load_cap | INT | 0 | Maximum number of images to load. 0 means load all images. |
| start_index | INT | 0 | Index of the first image to load from the sequence. |
| start_index_use_seed | BOOLEAN | false | Use the seed value as the start_index for random or sequential operations. |
| seed | INT | 0 | Seed value for random operations and optionally start_index if start_index_use_seed is enabled. |
| error_after_last_frame | BOOLEAN | false | If True, raise an error when start_index exceeds frame count. If False, wrap around using modulo. |
| skip_n | INT | 0 | Skip N frames between each loaded frame. 0 means load consecutive frames. |
| sort | COMBO | None | Method to sort multiple images: None, alphabetical, by date, visual similarity, or random. |
| reverse_order | BOOLEAN | false | Reverse the order of loaded images after sorting. |
| loop_first_frame | BOOLEAN | false | Append the first frame to the end of the sequence to create seamless loops. |
| force_rate | FLOAT | 00–60 | — |
Outputs (12)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| mask | MASK | — |
| WIDTH | INT | — |
| HEIGHT | INT | — |
| COUNT | INT | — |
| FILE_NAME | STRING | — |
| FILE_PATH | STRING | — |
| PARENT_DIRECTORY | STRING | — |
| FPS | FLOAT | — |
| AUDIO | AUDIO | — |
| PROMPT | STRING | — |
| METADATA_RAW | METADATA_RAW | — |