Nodes/DARASK Nodes/DARASK Folder Image Loader
ComfyUI Node

DARASK Folder Image Loader

One queue press, an entire folder processed — with a progress badge

By daraskme·Created 4 months ago·Updated 3 months ago· 1
DARASK Folder Image Loader
    • image
    • mask
    • width
    • height
    • positive
    • negative
    • filename
    • filepath
    • raw_metadata
    • current_index
    • total_count
    • progress
    folder
    extension*.*
    modeAuto Advance
    index0
    sort_byName
    order_byA-Z
    looptrue
    resetfalse
    auto_queue_alltrue

    Batch-upscaling a folder of images in ComfyUI is normally a sad little ritual: manual queue presses, babysitting, losing track of where you are. The DARASK Folder Image Loader is the fix - it's the Folder Image Queue + Load Image combo from D2 merged into one node, with a cursor that advances through a folder, a mode that enqueues every remaining image the moment you press Queue, and a progress badge on the node itself so you never have to wonder where it is.

    The three modes

    • Auto Advance - returns one image per queue, cursor moves on automatically. The default for folder sweeps.
    • Manual Index - load one specific image by index. For when the batch hit an ugly result and you want that exact file back.
    • All as Batch - loads the entire folder into one batched IMAGE tensor. For when you want all of them through a sampler at once (VRAM permitting).

    The killer feature is auto_queue_all (default on). One press of Queue Prompt front-loads every remaining image onto the queue via the prompt server, so the queue panel shows the whole batch, you can cancel or clear it like normal, and a full pass stops automatically instead of looping forever. Don't also enable ComfyUI's Auto Queue (instant) on top - you'll double-enqueue and burn a full pass for nothing. The README is explicit: pick one.

    The cursor, and why you should care

    State persists against the workflow's node ID, not a Python object, so light workflow edits don't reset your position. Change the folder, extension, sort_by, order_by, or the file count and it auto-resets to zero - which prevents the annoying "I pointed it at a new folder and it started mid-way through" surprise. loop = False runs a single pass: at the end the node blocks downstream with a silent ExecutionBlocker (no red error toast) and the badge turns green (done). reset = True forces the cursor back to zero on next run.

    Useful outputs beyond the obvious image/mask: filename and filepath (feed filepath to the Exif Apply nodes - that's the whole batch-upscale recipe), positive/negative pulled from the file's metadata, and progress as a "3/20" string you can pipe to Show Text.

    Install and the recipe it's built for

    ComfyUI Manager → search DARASK → install, restart. No models needed.

    The pack's flagship recipe: DARASK Folder Image Loader → DARASK Exif Apply → easy hiresFix. Each image's own model/LoRA/prompt is reconstructed from its metadata and upscaled in place. The example workflow hiresfix_folder_exif.json ships in the pack and needs ComfyUI-Easy-Use installed - worth noting before you load it and get a wall of red nodes.

    Gotchas

    If it keeps returning the same image, check you're in Auto Advance, not Manual Index. And the silent ExecutionBlocker at end-of-pass means nothing downstream runs after the last image - if your SaveImage is downstream and you expected a final frame, that's the designed behavior, not a bug.

    CategoryDARASK

    Inputs (9)

    NameTypeDefaultDescription
    folderSTRING
    extensionSTRING*.*
    modeCOMBOAuto Advance3 options: Auto Advance, Manual Index, All as Batch
    indexINT00–4294967295Auto Advance: starting cursor for each fresh Queue Prompt press — set 5 to skip the first 5 images, etc. Manual Index: the exact image to load.
    sort_byCOMBOName3 options: Name, Date, Random
    order_byCOMBOA-Z2 options: A-Z, Z-A
    loopBOOLEANtrue
    resetBOOLEANfalse
    auto_queue_allBOOLEANtrueAuto Advance mode only: a single press of Queue Prompt front-loads every remaining image in the folder onto the queue at once, so the queue panel shows the whole batch (and you can cancel/clear it like any other queue). Turn off to require one manual queue press per image.

    Outputs (12)

    NameTypeDescription
    imageIMAGE
    maskMASK
    widthINT
    heightINT
    positiveSTRING
    negativeSTRING
    filenameSTRING
    filepathSTRING
    raw_metadataSTRING
    current_indexINT
    total_countINT
    progressSTRING