ComfyUI > Nodes > Basic data handling > load IMAGE from file (RGB)

ComfyUI Node: load IMAGE from file (RGB)

Class Name

Basic data handling: PathLoadImageRGB

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 from file (RGB) Description

Loads images from a file path, extracts RGB channels, and outputs an RGB tensor with success status.

load IMAGE from file (RGB):

The PathLoadImageRGB node is designed to facilitate the loading of images from a specified file path, focusing on extracting only the RGB channels. This node is particularly useful for AI artists who need to process images without the complexity of handling alpha channels. By converting images to RGB format, it simplifies the data handling process, ensuring that the images are ready for further processing or analysis. The node's primary function is to read an image file, convert it to an RGB tensor, and provide a boolean indicating the success of the operation. This makes it an essential tool for workflows that require consistent image data formats, enhancing efficiency and reducing potential errors related to image transparency.

load IMAGE from file (RGB) 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 should point to the location of the image file on your system. The function of this parameter is to direct the node to the correct file for processing. The impact of this parameter on the node's execution is significant, as an incorrect path will result in the node being unable to locate and load the image, leading to a failure in processing. There are no specific minimum or maximum values for this parameter, but it must be a valid file path. The default value is an empty string, which means you need to provide a valid path for the node to function correctly.

load IMAGE from file (RGB) Output Parameters:

image

The image output parameter provides the RGB channels of the loaded image as a tensor. This output is crucial as it represents the processed image data that can be used in subsequent nodes or operations. The tensor format is compatible with ComfyUI, ensuring seamless integration into your workflow. The interpretation of this output is straightforward: it is the image data without any alpha channel, ready for further manipulation or analysis.

exists

The exists output parameter is a boolean value that indicates whether the image was successfully loaded from the specified path. This output is important for error handling and validation within your workflow. If the value is True, it confirms that the image was found and processed correctly. If False, it suggests that there was an issue with loading the image, possibly due to an incorrect path or a non-existent file.

load IMAGE from file (RGB) Usage Tips:

  • Ensure that the path parameter is correctly set to the location of your image file to avoid loading errors.
  • Use the exists output to verify that the image was successfully loaded before proceeding with further processing steps.
  • Consider using this node when you need to standardize image data to RGB format, especially if you are working with images that may contain alpha channels.

load IMAGE from file (RGB) 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 path parameter to ensure it is correct and that the file exists at the specified location.

InvalidImageFormatError

  • Explanation: This error might occur 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 (e.g., JPEG, PNG) and not corrupted.

PermissionError

  • Explanation: This error can occur if the node does not have the necessary permissions to access the file at the specified path.
  • Solution: Ensure that the file permissions allow read access for the application or user running the node.

load IMAGE from file (RGB) 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.

load IMAGE from file (RGB)