Nodes/ComfyUI-GeN13/Load Latest Image Private (GeN13)
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.

By heigen13·Created 3 days ago·Updated about 21 hours ago· 1
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)

    NameTypeDefaultDescription
    folder_pathSTRING/tmp/ComfyUI/outputFolder: full path of the folder to load from.
    sort_byCOMBOnewest firstSort by: newest first puts the most recently saved file first; name sorts file names in natural order.
    indexINT00–99999Index: position in the sort order; 0 is the first image, 1 the second, and so on.
    countINT11–64Count: images loaded in a row from index, as one batch. Different sizes are scaled to the first image.
    filename_filterSTRING*Filename filter: wildcards such as ComfyUI_*; separate multiple patterns with ;.
    subfoldersBOOLEANfalseSubfolders: INCLUDE also searches every subfolder below.
    extensionsSTRINGpng,jpg,jpeg,webp,bmp,tif,tiffExtensions: comma-separated, not case-sensitive.

    Outputs (7)

    NameTypeDescription
    IMAGEIMAGEImage: a single image or a batch.
    MASKMASKMask: 1 in transparent areas; all 0 when the image has no alpha channel.
    widthINTWidth: output image width in px.
    heightINTHeight: output image height in px.
    filenameSTRINGFilename: name of the first image, without path.
    pathSTRINGPath: full path of the first image.
    totalINTTotal: number of matching files.