Nodes/ComfyUI-Leputen-Utils/Load Images (Batch)
ComfyUI Node

Load Images (Batch)

Iterates through and loads image files (including EXR/HDR) from a directory in batches.

By lilquail·Created 8 months ago·Updated 8 months ago· 1
Load Images (Batch)
    • image
    • mask
    • filename
    • path
    directorypath/to/folder
    pattern*
    include_subfoldersfalse
    batch_index0
    batch_size-1
    alpha_bleedtrue
    blur_radius0.0
    invert_maskfalse
    exr_tone_mapfalse
    CategoryLeputen-Utils/Image

    Inputs (9)

    NameTypeDefaultDescription
    directorySTRINGpath/to/folderThe absolute path to the directory containing files to load.
    patternSTRING*Filename filter pattern using glob syntax. Examples: • * = all files • *_a.dds = files ending in _a.dds • texture_* = files starting with texture_ Multiple patterns: Use semicolon (;) to match multiple patterns: • *_a.dds;*_n.dds = albedo and normal maps
    include_subfoldersBOOLEANfalseIf enabled, recursively scans subdirectories for matching files.
    batch_indexINT0Current batch index. Connect an external iterator for automatic incrementing.
    batch_sizeINT-1Number of files to load per batch. Set to -1 to load ALL files at once.
    alpha_bleedBOOLEANtrueEnable alpha bleeding to prevent halo artifacts around transparent areas.
    blur_radiusoptFLOAT0.00–10Apply blur during alpha bleeding for smoother transitions.
    invert_maskoptBOOLEANfalseInvert the output mask (white becomes black and vice-versa).
    exr_tone_mapoptBOOLEANfalseFor EXR files: Apply Reinhard tone mapping. If disabled, raw HDR values are preserved.

    Outputs (4)

    NameTypeDescription
    imageIMAGE
    maskMASK
    filenameSTRING
    pathSTRING