Nodes/ComfyUI-IntoTheLatent-Utils/ITL Multi Image Loader
ComfyUI Node

ITL Multi Image Loader

Drop up to 8 images onto the node; each gets its own image_N output socket (sockets appear/disappear with the list, or pin output_slots to a fixed count so wires survive file edits). Each row has an on/off toggle: a switched-off row keeps its socket position but outputs None for image_N (and mask_N/filename_N on Advanced) — equivalent to leaving an unplugged OPTIONAL input, so don't switch off a row feeding a REQUIRED input. Optional downscaling: set downscale_mode to keep aspect ratio/crop to square/stretch to square and images larger than max_size shrink on load. count = number of files actually emitted (enabled rows), not the row count.

By Into-The-Latent·Created 9 days ago·Updated 5 days ago· 1
ITL Multi Image Loader
    • count
    • image_1
    • image_2
    • image_3
    • image_4
    • image_5
    • image_6
    • image_7
    • image_8
    files_json[]
    downscale_modeoff
    max_size1200
    output_slotsauto
    CategoryInto The Latent/image

    Inputs (4)

    NameTypeDefaultDescription
    files_jsonSTRING[]Authoritative file list as JSON. Hidden in the UI and kept in sync by the front-end — drop files onto the node instead of editing this.
    downscale_modeCOMBOoffoff = images pass through untouched. keep aspect ratio = shrink keeping shape so the longest edge is max_size. crop to square = centered square, at most max_size. stretch to square = force a max_size square (ignores shape). Never upscales (keep aspect ratio/crop to square); masks follow their image.
    max_sizeINT12008–8192Size threshold/target in pixels for downscaling. Ignored while downscale_mode is off.
    output_slotsCOMBOautoHow many output sockets to show. 'auto' follows the number of loaded files, so sockets appear and disappear as you edit the list. Pick a fixed number to keep the sockets (and your wires) in place while you swap files around — extra sockets with no file behind them output nothing, so don't wire more than you load.

    Outputs (9)

    NameTypeDescription
    countINT
    image_1IMAGE
    image_2IMAGE
    image_3IMAGE
    image_4IMAGE
    image_5IMAGE
    image_6IMAGE
    image_7IMAGE
    image_8IMAGE