ComfyUI > Nodes > D2 Nodes ComfyUI > D2 Load Folder Images

ComfyUI Node: D2 Load Folder Images

Class Name

D2 Load Folder Images

Category
D2/Image
Author
da2el-ai (Account age: 713days)
Extension
D2 Nodes ComfyUI
Latest Updated
2025-05-04
Github Stars
0.03K

How to Install D2 Nodes ComfyUI

Install this extension via the ComfyUI Manager by searching for D2 Nodes ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter D2 Nodes ComfyUI in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

D2 Load Folder Images Description

Streamline image loading and management from specified folder for AI artists, automating retrieval and organization for efficient processing.

D2 Load Folder Images:

The D2 Load Folder Images node is designed to streamline the process of loading and managing images from a specified folder within your workflow. This node is particularly beneficial for AI artists who need to handle multiple images efficiently, as it automates the retrieval and organization of image files. By leveraging this node, you can easily access images stored in a directory, sort them based on various criteria, and prepare them for further processing or analysis. The node's primary goal is to simplify the image loading process, allowing you to focus on creative tasks without getting bogged down by manual file management.

D2 Load Folder Images Input Parameters:

folder

This parameter specifies the directory from which images will be loaded. It is crucial for determining the source location of the images you wish to process. The folder path should be provided as a string, and it defaults to an empty string if not specified. Ensuring the correct folder path is set is essential for the node to function correctly, as it directly impacts the images that will be retrieved.

extension

The extension parameter allows you to filter the types of image files to be loaded based on their file extensions. By default, it is set to ".", which means all file types will be considered. You can specify particular extensions, such as ".jpg" or ".png", to narrow down the selection to specific image formats. This parameter helps in managing the types of images you want to include in your workflow.

sort_by

This parameter determines the criteria by which the images will be sorted. Options include "Name", "Date", and "Random", with "Name" being the default. Sorting by name organizes images alphabetically, by date arranges them chronologically, and random provides a non-sequential order. The choice of sorting can affect the order in which images are processed and displayed.

order_by

The order_by parameter specifies the direction of sorting, with options "A-Z" and "Z-A". The default is "A-Z", which sorts images in ascending order, while "Z-A" sorts them in descending order. This parameter works in conjunction with sort_by to provide a comprehensive sorting mechanism, allowing you to control the sequence of image processing.

image_count

This optional parameter provides a simple text display of the number of images available in the specified folder. It is useful for quickly assessing the volume of images you are working with, although it does not directly affect the node's execution.

queue_seed

An optional parameter that can be used to set a seed for queuing images. This is particularly useful if you want to ensure a consistent order of images across different runs, as it helps in maintaining the same sequence when the images are loaded.

refresh_btn

This optional button parameter allows you to refresh the list of images in the folder. It is useful when new images are added to the directory, and you want to update the node's image list without restarting the entire process.

D2 Load Folder Images Output Parameters:

images

This output parameter provides a batch of images loaded from the specified folder. The images are returned as a tensor, which can be used for further processing in your workflow. This output is crucial for any subsequent image manipulation or analysis tasks.

image_count

The image_count output parameter returns the total number of images loaded from the folder. It is an integer value that gives you a quick overview of the volume of images processed, which can be useful for monitoring and managing your workflow.

D2 Load Folder Images Usage Tips:

  • Ensure the folder path is correctly set to avoid errors in loading images. Double-check the directory path for typos or incorrect entries.
  • Use the extension parameter to filter out unwanted file types, which can help streamline your workflow by focusing only on relevant image formats.
  • Utilize the sort_by and order_by parameters to organize images in a way that best suits your project needs, whether it's chronological order for a timeline or random for creative exploration.

D2 Load Folder Images Common Errors and Solutions:

"Folder not found"

  • Explanation: This error occurs when the specified folder path does not exist or is incorrect.
  • Solution: Verify the folder path for accuracy and ensure that the directory exists on your system.

"No images found with the specified extension"

  • Explanation: This error indicates that no images matching the given file extension were found in the folder.
  • Solution: Check the extension parameter to ensure it matches the file types present in the folder, or adjust it to "." to include all file types.

"Index out of range"

  • Explanation: This error can occur if the start_at parameter is set to a value greater than the number of images available.
  • Solution: Adjust the start_at parameter to a valid index within the range of available images, or ensure the folder contains enough images.

D2 Load Folder Images Related Nodes

Go back to the extension to check out more related nodes.
D2 Nodes ComfyUI
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.