ComfyUI > Nodes > Basic data handling > load IMAGE+MASK from file (RGBA)

ComfyUI Node: load IMAGE+MASK from file (RGBA)

Class Name

Basic data handling: PathLoadImageRGBA

Category
Basic/Path
Author
StableLlama (Account age: 861days)
Extension
Basic data handling
Latest Updated
2026-05-07
Github Stars
0.04K

How to Install Basic data handling

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

load IMAGE+MASK from file (RGBA) Description

PathLoadImageRGBA loads images from a file path, extracting RGB as a tensor and Alpha as a mask.

load IMAGE+MASK from file (RGBA):

The PathLoadImageRGBA node is designed to facilitate the loading of images from a specified file path, specifically focusing on extracting both the RGB and Alpha channels. This node is particularly beneficial for AI artists who need to work with images that include transparency information. By processing the image, it returns the RGB channels as a tensor and the Alpha channel as a separate mask tensor. This functionality is crucial when dealing with images that require transparency handling, as it allows for the manipulation of both the visible content and the transparency layer independently. If an image lacks an alpha channel, the node gracefully handles this by providing a blank mask, ensuring that the workflow remains uninterrupted. This node is an essential tool for those looking to integrate image data with transparency into their AI-driven projects, offering a seamless way to manage and utilize complex image data.

load IMAGE+MASK from file (RGBA) Input Parameters:

path

The path parameter is a required input that specifies the file path of the image you wish to load. It is a string value that directs the node to the location of the image file on your system. The function of this parameter is to provide the node with the necessary information to locate and access the image file. The impact of this parameter on the node's execution is significant, as an incorrect or invalid path will result in the node being unable to load the image, thus affecting the output. There are no explicit minimum or maximum values for this parameter, but it must be a valid file path string. The default value is an empty string, which means you need to specify a path for the node to function correctly.

load IMAGE+MASK from file (RGBA) Output Parameters:

image

The image output parameter provides the RGB channels of the loaded image as a tensor. This output is crucial for further processing or analysis within your AI project, as it represents the visual content of the image without any transparency information. The tensor format is compatible with ComfyUI, allowing for seamless integration into your workflow.

mask

The mask output parameter delivers the Alpha channel of the image as a mask tensor. This output is essential for handling transparency in images, enabling you to manipulate or analyze the transparency layer separately from the RGB content. If the image does not contain an alpha channel, a blank mask is returned, ensuring that the node's output remains consistent.

exists

The exists output parameter is a boolean value that indicates whether the image was successfully loaded from the specified path. A value of True signifies that the image was found and processed, while False indicates that the image could not be loaded, possibly due to an incorrect path or the file not existing.

load IMAGE+MASK from file (RGBA) Usage Tips:

  • Ensure that the file path provided in the path parameter is correct and points to an existing image file to avoid loading errors.
  • Use the mask output to handle transparency effects in your AI projects, allowing for more sophisticated image manipulations.
  • If you frequently work with images that lack an alpha channel, be prepared to handle the blank mask output in your workflow.

load IMAGE+MASK from file (RGBA) Common Errors and Solutions:

FileNotFoundError

  • Explanation: This error occurs when the specified file path does not point to an existing image file.
  • Solution: Double-check the file path for accuracy and ensure that the file exists at the specified location.

InvalidImageFormatError

  • Explanation: This error may arise if the file at the specified path is not a valid image format that can be processed.
  • Solution: Verify that the file is a supported image format and not corrupted or incompatible.

PermissionError

  • Explanation: This error indicates that the node does not have the necessary permissions to access the file at the specified path.
  • Solution: Check the file permissions and ensure that the node has the appropriate access rights to read the file.

load IMAGE+MASK from file (RGBA) Related Nodes

Go back to the extension to check out more related nodes.
Basic data handling
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.