Comfy-Org / Comfy-Org/ComfyUI

Add “Load Image Dataset from Folder (Sorted)” node with filename ordering controls

Open
#9,625 2 comments 0 reactions 0 assignees View on GitHub
Feature
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

### Feature Idea

I’d like a folder-based image loader node that mirrors LoadImageSetFromFolderNode but adds deterministic filename sorting before batching. This helps ensure reproducibility and predictable ordering

Proposed behavior:

Input:

folder: dropdown of ComfyUI/input subfolders
resize_method: None, Stretch, Crop, Pad (same as existing)
sort_order: Ascending, Descending, None
natural_sort: boolean (so img2.png comes before img10.png)
case_sensitive: boolean

It reuses load_and_process_images, so image preprocessing remains identical.
Sorting is applied to the file list prior to loading.

### Existing Solutions

_No response_

### Other

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.