Visit ComfyUI Online for ready-to-use ComfyUI environment
Efficiently load and manage images from a directory path with sorting options and customization parameters.
The LoadImagesFromPath
node is designed to streamline the process of loading images from a specified directory path. This node is particularly useful for AI artists who need to work with a large number of images, as it supports sorting images by time and can output a single image at a time. By leveraging this node, you can efficiently manage and load images for your projects, ensuring that you always have the most relevant and up-to-date images at your disposal. The node also offers optional parameters to customize the loading process, such as enabling a white background, selecting the newest files, and setting an index variable for precise control over the images being loaded.
This parameter specifies the directory path from which images will be loaded. It is a required parameter and must be provided as a string. The default value is an empty string. This parameter does not support dynamic prompts or multiline input.
This optional parameter allows you to enable or disable a white background for the loaded images. It accepts two options: "disable" and "enable". By default, this parameter is set to "disable". Enabling this option can be useful if you need a consistent background for your images.
This optional parameter lets you choose whether to load the newest files from the specified directory. It accepts two options: "enable" and "disable". By default, this parameter is set to "disable". Enabling this option ensures that the most recently added images are loaded first.
This optional parameter allows you to set an index variable to control which image is loaded from the directory. It accepts integer values with a minimum of -1 and a maximum of 2048. The default value is 0, and the step value is 1. This parameter can be displayed as either a number or a slider. Setting this parameter helps you precisely select the image you want to load based on its index in the directory.
This optional parameter enables or disables a watcher that monitors the directory for changes. It accepts two options: "disable" and "enable". By default, this parameter is set to "disable". Enabling this option ensures that the node automatically updates when new images are added to the directory.
This optional parameter is of type "WATCHER" and is used to activate the node's execution. It ensures that the node runs and processes the images as specified.
This optional parameter is of type "PROMPT" and can be used to provide additional prompts or instructions for the node's execution.
This output parameter provides the loaded image(s) from the specified directory. The images are processed and returned in a format suitable for further use in your AI art projects.
This output parameter provides the mask(s) associated with the loaded image(s). Masks are useful for various image processing tasks, such as segmentation and background removal.
This output parameter returns the file path of the loaded image(s) as a string. This can be useful for logging or further processing steps that require the file path information.
This output parameter is similar to the STRING parameter and provides the file path of the loaded image(s) as a string.
newest_files
parameter.index_variable
parameter to precisely control which image is loaded, especially when working with a large directory of images.watcher
parameter to automatically update the node when new images are added to the directory, ensuring your workflow remains efficient and up-to-date.file_path
parameter to ensure it points to a valid directory.file_path
parameter is correctly set.index_variable
parameter is set to a value that exceeds the number of images in the directory.index_variable
parameter to a value within the range of available images in the directory.watcher
parameter is enabled, but the node failed to monitor the directory for changes.© Copyright 2024 RunComfy. All Rights Reserved.