Visit ComfyUI Online for ready-to-use ComfyUI environment
Robust image loading and processing node for ComfyUI with advanced capabilities like frame handling, masks, and format conversion.
The ImageLoaderAdvanced
node is designed to provide a robust and flexible solution for loading and processing images within the ComfyUI environment. This node is particularly beneficial for AI artists who require advanced image handling capabilities, such as loading images with multiple frames, applying masks, and ensuring consistent image dimensions. By leveraging the power of the Python Imaging Library (PIL) and other image processing tools, ImageLoaderAdvanced
can handle a variety of image formats and apply transformations like EXIF transposition and conversion to RGB. It also supports the application of masks with adjustable strength and blur, making it a versatile tool for preparing images for further processing or analysis. The node's ability to validate image paths and handle errors gracefully ensures a smooth user experience, even when dealing with complex image sequences.
The image
parameter specifies the path to the image file you wish to load. It is crucial for the node to locate and access the image data. The path must be valid and point to an existing file; otherwise, the node will raise an error. This parameter does not have a default value, as it is essential for the node's operation.
The mask_mode
parameter determines how the node handles image masking. The default value is "alpha"
, which uses the alpha channel of the image for masking if available. This parameter allows you to specify different masking strategies, which can impact the final output by highlighting or obscuring certain parts of the image.
The mask_blur
parameter controls the amount of Gaussian blur applied to the mask. It accepts a floating-point value, with a default of 0.0
, meaning no blur is applied. Increasing this value will result in a softer mask, which can be useful for creating smooth transitions between masked and unmasked areas.
The mask_strength
parameter adjusts the intensity of the mask applied to the image. It is a floating-point value with a default of 1.0
, representing full strength. Lowering this value will reduce the mask's impact, allowing more of the underlying image to show through.
The output_image
parameter is the processed image data, ready for further use in your workflow. It is typically a tensor representation of the image, with all frames concatenated if the image contains multiple frames. This output is crucial for subsequent processing steps, as it provides a consistent and standardized image format.
The output_mask
parameter provides the mask data associated with the image. Like output_image
, it is usually a tensor, with masks for all frames concatenated if applicable. This output is essential for tasks that require selective processing or analysis of specific image regions.
mask_blur
and mask_strength
to achieve the desired masking effect, especially when working with images that require subtle transitions.<image_path>
<image>
: <error_message>
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.