ComfyUI Node
Load Latest Image Private (GeN13)
Loads images from a folder in sort order (newest, oldest or by name), with filename filters, subfolders and batch loading; files still being written or damaged are skipped.
Load Latest Image Private (GeN13)
- IMAGE
- MASK
- width
- height
- filename
- path
- total
◄folder_path/tmp/ComfyUI/output►
◄sort_bynewest first►
◄index0►
◄count1►
◄filename_filter*►
◄subfoldersfalse►
◄extensionspng,jpg,jpeg,webp,bmp,tif,tiff►
CategoryGeN13/image
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| folder_path | STRING | /tmp/ComfyUI/output | Folder: full path of the folder to load from. |
| sort_by | COMBO | newest first | Sort by: newest first puts the most recently saved file first; name sorts file names in natural order. |
| index | INT | 00–99999 | Index: position in the sort order; 0 is the first image, 1 the second, and so on. |
| count | INT | 11–64 | Count: images loaded in a row from index, as one batch. Different sizes are scaled to the first image. |
| filename_filter | STRING | * | Filename filter: wildcards such as ComfyUI_*; separate multiple patterns with ;. |
| subfolders | BOOLEAN | false | Subfolders: INCLUDE also searches every subfolder below. |
| extensions | STRING | png,jpg,jpeg,webp,bmp,tif,tiff | Extensions: comma-separated, not case-sensitive. |
Outputs (7)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | Image: a single image or a batch. |
| MASK | MASK | Mask: 1 in transparent areas; all 0 when the image has no alpha channel. |
| width | INT | Width: output image width in px. |
| height | INT | Height: output image height in px. |
| filename | STRING | Filename: name of the first image, without path. |
| path | STRING | Path: full path of the first image. |
| total | INT | Total: number of matching files. |