Visit ComfyUI Online for ready-to-use ComfyUI environment
Decode and process Base64-encoded images for AI workflows, generating masks from alpha channels for manipulation tasks.
The ETN_LoadImageBase64 node is designed to decode and process images encoded in Base64 format, making it an essential tool for AI artists who work with image data in this format. This node takes a Base64-encoded string representing an image, decodes it, and converts it into a format suitable for further processing in AI workflows. It also generates a mask from the image's alpha channel if present, which can be useful for various image manipulation tasks. By using this node, you can seamlessly integrate Base64-encoded images into your projects, enabling more flexible and dynamic image handling.
This parameter expects a Base64-encoded string representing the image you want to load. The string should be a valid Base64 representation of an image file, such as a PNG or JPEG. The node will decode this string and convert the image into a format that can be used in subsequent processing steps. The input should be a single-line string without any line breaks or additional characters.
The IMAGE output is a tensor representation of the decoded image. This tensor is in RGB format and normalized to have values between 0 and 1. It is suitable for use in various image processing and AI tasks, allowing you to manipulate and analyze the image data effectively.
The MASK output is a tensor representing the alpha channel of the image, if present. This mask is normalized to have values between 0 and 1, where 1 indicates full transparency and 0 indicates full opacity. If the image does not have an alpha channel, the node generates a default mask filled with zeros. This mask can be used for tasks such as image compositing, masking, and other operations that require transparency information.
© Copyright 2024 RunComfy. All Rights Reserved.