DARASK Folder Image Loader
One queue press, an entire folder processed — with a progress badge
- image
- mask
- width
- height
- positive
- negative
- filename
- filepath
- raw_metadata
- current_index
- total_count
- progress
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.
Inputs (9)
| Name | Type | Default | Description |
|---|---|---|---|
| folder | STRING | — | |
| extension | STRING | *.* | — |
| mode | COMBO | Auto Advance | 3 options: Auto Advance, Manual Index, All as Batch |
| index | INT | 00–4294967295 | Auto 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_by | COMBO | Name | 3 options: Name, Date, Random |
| order_by | COMBO | A-Z | 2 options: A-Z, Z-A |
| loop | BOOLEAN | true | — |
| reset | BOOLEAN | false | — |
| auto_queue_all | BOOLEAN | true | Auto 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)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| mask | MASK | — |
| width | INT | — |
| height | INT | — |
| positive | STRING | — |
| negative | STRING | — |
| filename | STRING | — |
| filepath | STRING | — |
| raw_metadata | STRING | — |
| current_index | INT | — |
| total_count | INT | — |
| progress | STRING | — |