Visit ComfyUI Online for ready-to-use ComfyUI environment
Convert Base64-encoded image strings for AI model processing, essential for AI artists integrating images into projects.
The Base64ImageInput
node is designed to convert a Base64-encoded image string into a format that can be processed by AI models. This node is particularly useful for AI artists who need to integrate images stored in Base64 format into their workflows. By decoding the Base64 string and converting it into a tensor, this node allows you to seamlessly incorporate images into your AI projects without worrying about the underlying data format. This functionality is essential for applications where images are transmitted or stored as Base64 strings, such as web applications or APIs.
The base64_image
parameter expects a string containing the Base64-encoded image data. This parameter is crucial as it provides the raw image data that will be decoded and processed. The string should be a valid Base64 representation of an image file. The default value is an empty string, and it does not support multiline input. Providing an invalid or empty Base64 string will result in an error, as the node will be unable to decode and process the image.
The output parameter IMAGE
is a tensor representation of the decoded image. This tensor is in a format suitable for further processing by AI models. The image is converted to RGB format and normalized to a range of 0 to 1, making it compatible with most image processing tasks. This output is essential for integrating the decoded image into your AI workflow, allowing for seamless transitions between different stages of image processing and analysis.
base64_image
string is a valid Base64-encoded representation of an image to avoid decoding errors.base64_image
string is not a valid Base64-encoded image.base64_image
parameter is empty, and no image data is provided for processing.base64_image
parameter contains a valid Base64-encoded image string before executing the node.© Copyright 2024 RunComfy. All Rights Reserved.