Nodes/comfyui-imgmake/LoadImageListPlus
ComfyUI Node

LoadImageListPlus

Load a whole folder of images, in the right order, in one shot

By dafeng012·Created 2 years ago·Updated 2 years ago· 17
LoadImageListPlus
    • images
    • image_list
    folder_path
    file_filter*.png
    sort_methodnumerical

    LoadImageListPlus is the "grab everything from this folder" node you keep needing and ComfyUI core annoyingly doesn't give you. Core's Load Image handles one file. This one points at a directory and loads every matching file as a batch of images, with sorting that actually works for video frames. In the comfyui-imgmake world that's the difference between "paint these 40 keyframes" being a chore and being one node.

    The sort is the part that matters most, because it's the part that silently breaks everything if it's wrong. sort_method defaults to numerical, and numerical here means: pull the digits out of each filename and sort by those. That's exactly right for the zero-padded %05d.png frames this pack's other nodes produce - 00002 sorts after 00001, not after 00010. A naive alphabetical sort on 2.png, 10.png gives you 10 before 2, and suddenly your keyframes are in the wrong order. If you ever load frames and the sequence looks scrambled, this is the node that fixes it.

    The inputs

    • folder_path - the directory to load from.
    • file_filter - glob pattern, default *.png. Want JPEGs? *.jpg. Want only the painted keyframes? *_key.png. It's plain pathlib globbing under the hood.
    • sort_method - numerical (default, digit-aware) or alphabetical.

    The outputs

    • images - an IMAGE list (note: a list, not a single batched tensor - downstream you may need to batch or iterate accordingly).
    • image_list - a STRING with every filename comma-joined. That's the pack's little convention for passing names around: it feeds SelectImageName, which turns the list plus an index back into a single name, e.g. for feeding a specific file back into a Load Image node by path.

    Installing it

    Standard comfyui-imgmake install - ComfyUI Manager (search comfyui-imgmake) or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/dafeng012/comfyui-imgmake
    

    Restart and it's there under the IMAGEmake category. No extra dependencies - this node is pure Pillow + torch, which is refreshing in a pack that otherwise drags in ffmpeg, EBSynth, and a segmentation model.

    Troubleshooting

    • "Folder path does not exist" - the node hard-fails on a bad path, and unlike some loaders it won't list your ComfyUI input dir for you. Double-check the absolute path (Windows backslashes fine).
    • Images load in the wrong order - check sort_method is numerical; if your filenames genuinely have no digits (like a.png, b.png), alphabetical is the right call.
    • Memory spikes on huge folders - it loads every image into a Python list at once. A folder of thousands of frames will eat RAM; filter with *.png and only point it at what you actually need.

    A quiet, useful node. Nothing glamorous, but it's the kind of thing that makes a keyframe-driven workflow feel less like a spreadsheet.

    CategoryIMAGEmake

    Inputs (3)

    NameTypeDefaultDescription
    folder_pathSTRING
    file_filterSTRING*.png
    sort_methodCOMBOnumerical2 options: numerical, alphabetical

    Outputs (2)

    NameTypeDescription
    imagesIMAGE
    image_listSTRING