Nodes/ComfyUI_LC123_nodes/LC Image Batch From Folder 📂
ComfyUI Node

LC Image Batch From Folder 📂

Loads a folder of images as one batch in alphabetical order (img2 before img10). Valid: png, jpg, jpeg, webp, bmp, tif, tiff, gif (first frame). start_index + max_images pick a window of the folder. count = images loaded, total_found = images in the folder.

By lonecatone23·Created 2 months ago·Updated about 7 hours ago· 22
LC Image Batch From Folder 📂
    • images
    • count
    • total_found
    • filenames
    ◄folder_path►
    ◄start_index0►
    ◄max_images0►
    ◄size_modecrop►
    ◄include_subfoldersfalse►
    CategoryLC123/image

    Inputs (5)

    NameTypeDefaultDescription
    folder_pathSTRINGFull path or a folder name inside ComfyUI/input. Paste it however you like: with or without quotes, / or \.
    start_indexINT00–100000Skip this many images first (0 = start at the first one).
    max_imagesINT00–100000Load at most this many. 0 = all of them. Lower it if you run out of memory.
    size_modeCOMBOcropImages that are not the size of the first one: crop to fill, pad with black, or stretch.
    include_subfoldersBOOLEANfalse—

    Outputs (4)

    NameTypeDescription
    imagesIMAGE—
    countINT—
    total_foundINT—
    filenamesSTRING—