Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates advanced image loading and processing in ComfyUI for AI artists, supporting RGB, RGBA, image sequences, orientation adjustment, pixel normalization, and mask generation.
The AD_LoadImageAdvanced
node is designed to facilitate the advanced loading and processing of images within the ComfyUI framework. This node is particularly useful for AI artists who need to handle images with precision, as it supports both RGB and RGBA formats, allowing for the inclusion of alpha channels when necessary. The node efficiently processes image sequences, making it ideal for handling animations or multi-frame images. It automatically adjusts image orientation based on EXIF data and normalizes pixel values for compatibility with machine learning models. Additionally, it generates corresponding masks for images with alpha channels, which can be crucial for tasks involving transparency or compositing. By providing a streamlined method for loading and preparing images, AD_LoadImageAdvanced
enhances workflow efficiency and ensures that images are ready for further processing or analysis.
The image
parameter specifies the path to the image file you wish to load. This parameter is crucial as it determines which image will be processed by the node. The image file should be located within the designated input directory, and the path should be relative to this directory. The node supports a variety of image formats, making it versatile for different use cases.
The strip_extension
parameter is a boolean option that determines whether the file extension should be removed from the image filename in the output. When set to True
, the node will return the filename without its extension, which can be useful for organizing or displaying filenames without clutter. The default value is True
.
The rgba
parameter is a boolean option that specifies whether the image should be processed in RGBA mode, which includes the alpha channel for transparency. When set to True
, the node will convert the image to RGBA format, allowing for the handling of transparency in the image. This is particularly useful for tasks that require precise control over image layers and compositing. The default value is False
.
The IMAGE
output is a processed tensor representation of the loaded image. This output is crucial for further image processing tasks, as it provides a normalized and ready-to-use format for machine learning models. The tensor includes pixel values scaled between 0 and 1, ensuring compatibility with various AI frameworks.
The MASK
output is a tensor that represents the alpha channel of the image, if available. This mask is essential for tasks involving transparency, as it allows for precise control over which parts of the image are visible or affected by subsequent operations. If the image does not contain an alpha channel, a default mask is provided.
The FILENAME
output is a string that contains the name of the image file, with or without the extension based on the strip_extension
parameter. This output is useful for tracking and organizing images, especially when dealing with large datasets or batch processing.
rgba
parameter to handle images with transparency, which is particularly useful for compositing tasks.strip_extension
to True
if you prefer to work with filenames without extensions for cleaner data management.<filename>
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.