ComfyUI > Nodes > ComfyUI-CoCoTools > Image Loader

ComfyUI Node: Image Loader

Class Name

ImageLoader

Category
COCO Tools/Loaders
Author
Conor-Collins (Account age: 431days)
Extension
ComfyUI-CoCoTools
Latest Updated
2025-03-05
Github Stars
0.03K

How to Install ComfyUI-CoCoTools

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

Image Loader Description

Facilitates image loading, processing, format conversion, transformations, metadata preparation for AI art applications.

Image Loader:

The ImageLoader node is designed to facilitate the loading and processing of images in various formats, including jpg, png, tif, avif, and webp. Its primary purpose is to convert images into a format that can be easily manipulated and analyzed within AI art applications. By supporting a wide range of image formats, the node ensures flexibility and compatibility with different image sources. The node processes images by applying necessary transformations, such as EXIF orientation correction and conversion to RGB, and handles bit depth detection to ensure accurate representation. Additionally, it manages alpha channels, normalizes image data, and prepares metadata for further use. This comprehensive approach allows you to seamlessly integrate image data into your creative workflows, enhancing the efficiency and effectiveness of your AI art projects.

Image Loader Input Parameters:

image

The image parameter specifies the image file to be loaded and processed by the node. It is crucial for determining the source of the image data that will be transformed and analyzed. The parameter supports various image formats, ensuring compatibility with different types of image files. There are no explicit minimum or maximum values for this parameter, as it primarily depends on the file path or location of the image. The default value is not applicable, as the parameter requires a specific image file to be provided.

Image Loader Output Parameters:

output_image

The output_image parameter represents the processed image data in a tensor format. This output is crucial for further manipulation and analysis within AI art applications. The tensor format ensures that the image data is in a consistent and standardized form, allowing for seamless integration into various workflows. The output image retains the original dimensions and color information, making it suitable for a wide range of creative tasks.

output_mask

The output_mask parameter provides a mask tensor that corresponds to the alpha channel of the image, if present. This mask is essential for handling transparency and compositing tasks, as it allows you to isolate and manipulate specific parts of the image. If the image does not contain an alpha channel, a default mask is generated, ensuring that the output is always consistent and usable.

Image Loader Usage Tips:

  • Ensure that the image file paths are correctly specified to avoid loading errors and ensure smooth processing.
  • Utilize the node's ability to handle various image formats to experiment with different types of images and enhance your creative projects.
  • Take advantage of the output mask to perform advanced compositing and transparency effects in your AI art.

Image Loader Common Errors and Solutions:

Error loading image <image_path>: <error_message>

  • Explanation: This error occurs when the node encounters an issue while attempting to load the specified image file. The error message provides details about the specific problem encountered.
  • Solution: Verify that the image file path is correct and that the file is accessible. Ensure that the file format is supported by the node. If the issue persists, check for any file corruption or permission issues that may be preventing the node from accessing the image.

Image Loader Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-CoCoTools
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 Playground, enabling artists to harness the latest AI tools to create incredible art.