ComfyUI  >  Nodes  >  ComfyUI Easy Use >  Load Image (Base64)

ComfyUI Node: Load Image (Base64)

Class Name

easy loadImageBase64

Category
EasyUse/Image/LoadImage
Author
yolain (Account age: 1341 days)
Extension
ComfyUI Easy Use
Latest Updated
6/25/2024
Github Stars
0.5K

How to Install ComfyUI Easy Use

Install this extension via the ComfyUI Manager by searching for  ComfyUI Easy Use
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI Easy Use 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Load Image (Base64) Description

Facilitates loading Base64 images for AI artists, streamlining workflow and eliminating manual conversion.

Load Image (Base64):

The easy loadImageBase64 node is designed to facilitate the loading of images encoded in Base64 format into your workflow. This node is particularly useful for AI artists who need to work with images stored as Base64 strings, which is a common format for embedding image data directly into HTML or JSON. By converting Base64 encoded images into a format that can be processed by other nodes, this node streamlines the workflow and eliminates the need for manual conversion. The primary goal of this node is to simplify the handling of Base64 images, making it easier to integrate and manipulate image data within your projects.

Load Image (Base64) Input Parameters:

base64_data

This parameter expects a string containing the Base64 encoded image data. The node will decode this string to retrieve the image. The default value is an empty string, and it is required to provide a valid Base64 string for the node to function correctly. The quality and accuracy of the image output depend on the correctness of the Base64 data provided.

image_output

This parameter determines how the image should be handled after decoding. It offers options such as "Hide" or "Hide/Save". Choosing "Hide" will process the image without displaying it, while "Hide/Save" will process and save the image. This parameter helps manage the visibility and storage of the processed image, providing flexibility based on your needs.

save_prefix

This string parameter allows you to specify a prefix for the saved image files. The default value is "ComfyUI". This prefix helps in organizing and identifying the saved images, especially when dealing with multiple images in a project.

Load Image (Base64) Output Parameters:

IMAGE

This output parameter provides the decoded image in a format that can be further processed by other nodes. The image is converted from the Base64 string and made available for subsequent operations, ensuring seamless integration into your workflow.

MASK

This output parameter provides a mask for the image, which can be used for various image processing tasks such as segmentation or masking. The mask is generated based on the alpha channel of the image, if available, or a default mask if not.

Load Image (Base64) Usage Tips:

  • Ensure that the base64_data parameter contains a valid Base64 encoded string to avoid errors during decoding.
  • Use the image_output parameter to control whether the image should be displayed or saved, based on your project requirements.
  • Utilize the save_prefix parameter to organize your saved images, making it easier to manage and retrieve them later.

Load Image (Base64) Common Errors and Solutions:

Invalid Base64 Data

  • Explanation: The provided Base64 string is not valid or is incorrectly formatted.
  • Solution: Verify that the base64_data parameter contains a correctly formatted Base64 string. Use online tools to validate the Base64 string if necessary.

Image Decoding Failed

  • Explanation: The node failed to decode the Base64 string into an image.
  • Solution: Ensure that the Base64 string represents a valid image format (e.g., JPEG, PNG). Check for any corruption or errors in the Base64 data.

Missing Required Parameters

  • Explanation: One or more required parameters are missing or not provided.
  • Solution: Make sure all required parameters, such as base64_data, are provided and correctly set before executing the node.

Load Image (Base64) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI Easy Use
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.