Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-CustomNodeKit > 文件夹图像载入器

ComfyUI Node: 文件夹图像载入器

Class Name

FolderImageLoaderNode

Category
image
Author
user2318 (Account age: 2574days)
Extension
ComfyUI-CustomNodeKit
Latest Updated
2026-07-16
Github Stars
0.05K

How to Install ComfyUI-CustomNodeKit

Install this extension via the ComfyUI Manager by searching for ComfyUI-CustomNodeKit
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-CustomNodeKit 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

文件夹图像载入器 Description

Efficiently loads and processes image files from a specified directory for AI artists, offering flexibility and smooth handling of various scenarios.

文件夹图像载入器:

The FolderImageLoaderNode is designed to facilitate the loading of image files from a specified directory, making it an essential tool for AI artists who need to process multiple images efficiently. This node reads images in ascending order based on their filenames and offers the flexibility to skip a certain number of initial files, limit the number of images loaded, and adjust image sizes according to specific requirements. It is particularly beneficial for batch processing tasks where managing large sets of images is necessary. The node handles various scenarios gracefully, such as non-existent paths or empty directories, by issuing console warnings instead of throwing exceptions, ensuring a smooth user experience.

文件夹图像载入器 Input Parameters:

folder_path

The folder_path parameter specifies the directory from which images will be loaded. It is crucial for determining the source location of the images. If the path is invalid or not provided, the node will issue a warning and return no images. This parameter does not have a default value and must be specified by the user.

size_mode

The size_mode parameter dictates how the images should be resized during the loading process. This can impact the final appearance and quality of the images, as resizing can alter the resolution and aspect ratio. The available options for this parameter are not specified in the context, but it typically includes modes like maintaining the original size, scaling to a specific dimension, or fitting within a bounding box.

skip_first_n

The skip_first_n parameter allows you to skip a specified number of images at the beginning of the directory listing. This is useful when you want to ignore certain files or start processing from a specific point in the directory. The minimum value is 0, meaning no images are skipped, and there is no specified maximum value, allowing flexibility based on the number of images in the directory.

load_count

The load_count parameter determines the maximum number of images to load from the directory. This helps in controlling the batch size for processing, especially when dealing with large datasets. The minimum value is 1, and there is no specified maximum value, allowing you to load as many images as needed, up to the total number of images available in the directory.

文件夹图像载入器 Output Parameters:

images

The images output parameter provides the list of images loaded from the specified directory. Each image is processed according to the specified size mode and is ready for further processing or analysis. This output is crucial for workflows that involve batch processing of images, as it provides the necessary input for subsequent nodes or operations.

image_count

The image_count output parameter indicates the number of images successfully loaded from the directory. This is important for verifying that the expected number of images has been processed and can be used to adjust subsequent processing steps if necessary.

文件夹图像载入器 Usage Tips:

  • Ensure the folder_path is correctly specified and points to a valid directory to avoid warnings and ensure images are loaded successfully.
  • Use the skip_first_n parameter to manage large datasets by skipping over images that are not needed for your current task.
  • Adjust the size_mode to match the requirements of your project, ensuring that images are resized appropriately for your specific use case.

文件夹图像载入器 Common Errors and Solutions:

Warning: 未提供文件夹路径

  • Explanation: This warning indicates that the folder_path parameter was not provided or is empty.
  • Solution: Ensure that you specify a valid directory path in the folder_path parameter.

Warning: 文件夹不存在或不是有效目录

  • Explanation: This warning occurs when the specified folder_path does not exist or is not a directory.
  • Solution: Verify that the path is correct and points to an existing directory.

Warning: 文件夹内无图片文件

  • Explanation: This warning is issued when the specified directory does not contain any image files.
  • Solution: Check the directory to ensure it contains image files with supported extensions such as .png, .jpg, .jpeg, .bmp, .tiff, or .webp.

文件夹图像载入器 Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-CustomNodeKit
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 Models, enabling artists to harness the latest AI tools to create incredible art.

文件夹图像载入器