Nodes/comfyui-missed-tool/Image Queue Loader
ComfyUI Node

Image Queue Loader

Re-render your shortlist, not your whole batch — ImageQueueLoader hands you each image's seed

By ifmylove2011·Created about a year ago·Updated 3 days ago· 3
Image Queue Loader
    • image
    • Metadata RAW
    path
    start0
    limit10
    filename_reg*

    The workflow every ComfyUI user eventually wants: you generated 200 images, kept the 20 good ones, and now you want to redo those 20 at higher quality. The blocker is always the same - you need each image's seed, and ComfyUI keeps that in the PNG's metadata, not in a list somewhere. ImageQueueLoader (from comfyui-missed-tool) is built for this: it walks a folder one image per queue run, hands you the image and its embedded metadata, and remembers where it left off so the next queue run picks up the next file.

    The author's own framing: "Load Images in Queue, it is possible to obtain metadata information, such as seed, from the generated images in a queue. We can retrieve seeds sequentially during sequential execution." That's the whole pitch in one sentence.

    How the queue works

    The trick is a small state file (tool_data.json, written next to the pack's code) that stores the current index. Each execution loads the next image from the folder and advances the counter, so instead of getting a batch of ten at once, you queue the workflow ten times and get them one at a time. The node also forces a re-run every execution, so the queue actually moves. Feed each image into a sampler with its extracted seed and you've got a faithful re-render loop.

    The inputs are the boring-but-important part:

    • path - the folder to scan. Must be a directory.
    • filename_reg - a glob filter (default *), so you can queue only *.png or *_v2.*. Only jpg/png/bmp files are picked up.
    • start / limit - the window of the folder to walk. Default limit is 10.

    The metadata output

    The second output, Metadata RAW, is the payload: workflow and prompt get parsed into JSON (the prompt JSON is where your seed lives), and everything else is best-effort converted. Here's the honest part: the pack doesn't ship a node to read that METADATA_RAW output. You'll pair it with a metadata node that accepts the type - the Crystools pack (its author built a whole line of metadata tools) is the usual companion - or pull the seed out of the prompt JSON yourself. The raw string is there; the reader is on you.

    Gotchas worth knowing

    • Path must be a folder. Passing a single file path hits a genuine bug in the code - the branch that tries to handle files never actually resolves the path. Point it at a directory.
    • State persists. The index lives in tool_data.json across restarts. If you delete images between runs, the counter can land past the new end of the list - the code resets it to start when that happens, but expect a little weirdness if you're pruning files mid-queue.
    • Not a batch node. It deliberately returns one image per run. If you need a whole batch, the Inspire Pack's Load Image List From Dir is the better tool; this one is about the sequence.

    Install

    Standard for this pack - ComfyUI Manager, search comfyui-missed-tool, or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/ifmylove2011/comfyui-missed-tool.git
    

    Restart, find "Image Queue Loader" under missed-tool. No extra dependencies - the pack leans on torch/PIL, which ComfyUI already has.

    Categorymissed-tool

    Inputs (4)

    NameTypeDefaultDescription
    pathSTRING
    startINT00–9999
    limitINT101–9999
    filename_regSTRING*

    Outputs (2)

    NameTypeDescription
    imageIMAGE
    Metadata RAWMETADATA_RAW