Visit ComfyUI Online for ready-to-use ComfyUI environment
Convert images to Base64 for web embedding and transfer, ideal for AI artists needing compact, universal image data handling.
The ImageToBase64Advanced
node is designed to convert images into Base64 encoded strings, which can be easily embedded in web pages or transferred over the internet. This node is particularly useful for AI artists who need to handle image data in a format that is both compact and universally supported. By converting images to Base64, you can ensure that the image data remains intact and can be easily decoded back into its original form when needed. This node provides an advanced method for encoding images, ensuring high compatibility and ease of use in various applications.
This parameter accepts a list of images that you want to convert to Base64 encoded strings. Each image should be in a tensor format, which is a multi-dimensional array commonly used in machine learning and image processing tasks. The images parameter is crucial as it directly impacts the output, determining the quality and accuracy of the Base64 encoded strings. There are no specific minimum or maximum values for this parameter, but it is essential to ensure that the images are correctly formatted and pre-processed before inputting them into the node.
This hidden parameter is used internally to store the prompt metadata associated with the images. It is not required to be set manually by the user, as it is automatically handled by the node. The prompt metadata can include various details about the image generation process, which can be useful for tracking and reproducing results.
Similar to the prompt parameter, this hidden parameter stores additional PNG metadata that can be embedded into the Base64 encoded string. This metadata can include custom information such as author details, creation date, or any other relevant data. Like the prompt parameter, extra_pnginfo is managed internally and does not require manual input from the user.
This output parameter provides the Base64 encoded string representation of the input images. The encoded string is prefixed with data:image/png;base64,
to indicate that it is a PNG image in Base64 format. This output is essential for embedding images in HTML or transferring them over text-based protocols.
This output parameter returns the original image tensor that was input into the node. This allows you to retain the original image data for further processing or analysis, ensuring that you do not lose any information during the conversion process.
This output parameter provides a mask tensor associated with the input images. The mask is a binary representation that can be used for various image processing tasks, such as segmentation or highlighting specific regions of the image. The mask is particularly useful for applications that require precise control over image regions.
© Copyright 2024 RunComfy. All Rights Reserved.