EasyUse/Image/LoadImagegenerated

Load Image (Base64)(loadImageBase64)

Loads an image from a Base64-encoded string instead of reading from an image file.

load Image Base64

IMAGE
MASK
base64_data
STRING
image_output
Preview
save_prefix
ComfyUI
Easy Use

Description

Loads an image from a Base64-encoded string instead of reading from an image file. This is useful when working with images generated or transferred as Base64 data, such as data from an API, clipboard, or other external source. The decoded image is passed through the node as an IMAGE tensor, and its alpha channel is exposed as a MASK output.

Inputs

base64_data

The Base64-encoded image string to decode. Paste the full Base64 payload into this text input. The node supports standard Base64-encoded image data. Very large Base64 strings may be cumbersome to paste manually; consider using a workflow or script to supply this value dynamically.

image_output

Controls what happens after the image is loaded.

  • Hide — Do not display the image in the UI and do not save it.
  • Preview — Display the image in a preview node without saving it to disk.
  • Save — Save the loaded image to disk without showing a preview.
  • Hide/Save — Save the image to disk without displaying a preview.

The default is Preview.

save_prefix

The filename prefix used when saving the image to disk. This only applies when image_output is set to Save or Hide/Save. The default prefix is ComfyUI.

Outputs

IMAGE

The decoded image as a ComfyUI image tensor, ready for use by other nodes.

MASK

The alpha channel of the decoded image as a mask. If the decoded image has no alpha channel, this output effectively provides an empty/opaque mask.

Usage Notes

This node is located in the EasyUse/Image/LoadImage category. It is particularly useful for workflows that accept Base64-encoded images from external systems, enabling them to enter the ComfyUI graph without first being written to a file.

Comments

Sign in with GitHub to join the discussion.

Loading comments…