ComfyUI > Nodes > ComfyUI-TD > LoadTDImage

ComfyUI Node: LoadTDImage

Class Name

LoadTDImage

Category
TouchDesigner
Author
JiSenHua (Account age: 1074days)
Extension
ComfyUI-TD
Latest Updated
2025-04-20
Github Stars
0.06K

How to Install ComfyUI-TD

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

Run ComfyUI Online

LoadTDImage Description

Facilitates loading Base64-encoded images for TouchDesigner, part of ComfyUI tooling nodes for efficient image processing.

LoadTDImage:

The LoadTDImage node is designed to facilitate the loading of images encoded in Base64 format, specifically for use within the TouchDesigner environment. This node is part of the ComfyUI tooling nodes and leverages the "Load Image (Base64)" functionality to decode and process images efficiently. Its primary purpose is to convert Base64-encoded image data into a format that can be easily manipulated and utilized in digital art projects. By decoding the image data and extracting any associated alpha channel as a mask, this node provides a seamless way to handle images with transparency, which is particularly useful in creative applications where layering and compositing are common. The node ensures that images are converted into a format compatible with further processing, making it an essential tool for artists working with complex image compositions.

LoadTDImage Input Parameters:

image

The image parameter is a required input that expects a string containing the Base64-encoded representation of an image. This parameter is crucial as it serves as the source data for the node's image processing capabilities. The input should be a valid Base64 string, which the node will decode to retrieve the image data. There are no specific minimum or maximum values for this parameter, but it must be a properly formatted Base64 string to ensure successful decoding and processing. The node does not provide a default value for this parameter, as it requires explicit input to function.

LoadTDImage Output Parameters:

IMAGE

The IMAGE output is a tensor representation of the decoded image, formatted as a PyTorch tensor. This output is crucial for further processing and manipulation within the TouchDesigner environment or other compatible systems. The image is converted to an RGB format and normalized to a range of 0 to 1, making it suitable for various digital art applications. This output allows you to work with the image data in a highly flexible and efficient manner, enabling complex transformations and effects.

MASK

The MASK output is a tensor that represents the alpha channel of the decoded image, if present. This mask is essential for handling transparency and compositing tasks, as it allows you to isolate and manipulate specific parts of the image. If the original image contains an alpha channel, the mask will reflect this, providing a normalized representation of the transparency data. In cases where no alpha channel is present, the node generates a default mask filled with zeros, ensuring consistent output regardless of the input image's properties.

LoadTDImage Usage Tips:

  • Ensure that the image parameter is a valid Base64 string to avoid decoding errors and ensure smooth processing.
  • Utilize the MASK output to handle transparency effectively, especially when working with layered compositions or requiring precise control over image blending.
  • Consider pre-processing your images to ensure they are in the desired format and size before encoding them in Base64, as this can optimize the node's performance and output quality.

LoadTDImage Common Errors and Solutions:

Error in LoadTDImage: <error_message>

  • Explanation: This error occurs when the node encounters an issue during the decoding or processing of the Base64 image string. Common causes include an improperly formatted Base64 string or unsupported image formats.
  • Solution: Verify that the image parameter is a correctly formatted Base64 string. Ensure that the image is in a supported format, such as PNG or JPEG, and that the Base64 encoding process was completed without errors. If the problem persists, consider re-encoding the image and checking for any anomalies in the data.

LoadTDImage Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-TD
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.