ComfyUI > Nodes > ComfyUI-TD > ImagetoTD

ComfyUI Node: ImagetoTD

Class Name

ImagetoTD

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

ImagetoTD Description

Facilitates seamless transfer of image data to TouchDesigner for real-time interactive multimedia projects.

ImagetoTD:

The ImagetoTD node is designed to facilitate the seamless transfer of image data from your current environment to TouchDesigner, a popular visual programming language for real-time interactive multimedia content. This node is particularly beneficial for artists and developers who wish to integrate AI-generated images into their TouchDesigner projects, enabling dynamic and interactive visual experiences. By converting image tensors into a format that can be transmitted over a network, ImagetoTD ensures that your images are efficiently sent to TouchDesigner, either to a specific client or broadcasted to multiple clients, depending on your needs. This capability allows for real-time updates and interactions, making it an essential tool for live performances, installations, and other multimedia projects where real-time image manipulation and display are crucial.

ImagetoTD Input Parameters:

images

The images parameter expects a collection of image tensors that you wish to send to TouchDesigner. These tensors represent the image data in a format that can be processed and converted into a standard image format like PNG. The images are typically generated or processed within your current environment and are ready to be transmitted to TouchDesigner for further use.

broadcast

The broadcast parameter is a boolean option that determines whether the images should be sent to a specific client or broadcasted to all connected clients. When set to True, the images are broadcasted to all clients, making it ideal for scenarios where multiple instances of TouchDesigner need to receive the same image data simultaneously. The default value is False, which means the images are sent to a specific client, identified by the server's client ID, allowing for targeted image delivery.

ImagetoTD Output Parameters:

ui

The ui output parameter provides a structured response containing metadata about the images that have been sent. This includes information such as the source of the transmission, the content type (e.g., image/png), and the type of output. This metadata is useful for verifying that the images have been successfully transmitted and for debugging purposes, ensuring that the data flow between your environment and TouchDesigner is functioning as expected.

ImagetoTD Usage Tips:

  • To optimize performance, ensure that the image tensors are pre-processed and ready for transmission before using the ImagetoTD node. This includes ensuring the correct dimensions and data types.
  • Use the broadcast parameter wisely based on your project needs. For installations or performances where multiple displays are involved, broadcasting can be beneficial. However, for targeted applications, sending to a specific client can reduce network load.

ImagetoTD Common Errors and Solutions:

No valid images provided

  • Explanation: This error occurs when the images parameter is either None or contains an empty tensor, indicating that no image data is available for transmission.
  • Solution: Ensure that the images parameter is populated with valid image tensors before invoking the ImagetoTD node. Check the data pipeline to confirm that images are being generated or loaded correctly.

Error in image conversion

  • Explanation: This error might occur if there is an issue converting the image tensor to a standard image format, possibly due to incorrect data types or dimensions.
  • Solution: Verify that the image tensors are in the correct format and dimensions expected by the node. Ensure that the data type is compatible with the conversion process, typically requiring a float32 format scaled between 0 and 1.

ImagetoTD 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.