ComfyUI > Nodes > ComfyUI_StarNodes > ⭐ Star Image Input (Dynamic)

ComfyUI Node: ⭐ Star Image Input (Dynamic)

Class Name

StarImageSwitch

Category
⭐StarNodes/Image And Latent
Author
Starnodes2024 (Account age: 326days)
Extension
ComfyUI_StarNodes
Latest Updated
2025-05-10
Github Stars
0.04K

How to Install ComfyUI_StarNodes

Install this extension via the ComfyUI Manager by searching for ComfyUI_StarNodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_StarNodes 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

⭐ Star Image Input (Dynamic) Description

Dynamically manage image inputs, select first available image from up to 20 sources, generate default image if none connected.

⭐ Star Image Input (Dynamic):

The StarImageSwitch node is designed to dynamically manage image inputs within a node-based workflow, providing flexibility and ease of use for AI artists. Its primary function is to select and process the first available image from a series of potential inputs, up to a maximum of 20. This capability allows users to seamlessly integrate multiple image sources into their projects without the need for complex configurations. If no image is connected, the node intelligently generates a default image, ensuring that the workflow remains uninterrupted. This default image is a 512x512 gray image with a subtle visual pattern, which can be useful for testing or placeholder purposes. The StarImageSwitch node is particularly beneficial for projects that require dynamic image input handling, offering a straightforward solution to manage multiple image sources efficiently.

⭐ Star Image Input (Dynamic) Input Parameters:

Image 1

This optional parameter allows you to connect an image to the node. The node will attempt to process the first connected image from a series of potential inputs, up to 20. If an image is connected to this parameter, it will be prioritized for processing. The parameter does not have a minimum or maximum value, as it simply accepts an image input. If no image is connected, the node will generate a default image. This parameter is crucial for determining which image the node will process, providing flexibility in managing multiple image sources.

⭐ Star Image Input (Dynamic) Output Parameters:

img_out

The output parameter img_out represents the processed image that the node returns. If an image is connected to the input, this output will be the same image, allowing it to be used in subsequent nodes within the workflow. If no image is connected, the output will be a default 512x512 gray image with a visual pattern. This output is essential for ensuring that the workflow continues smoothly, even in the absence of a connected image, by providing a consistent and predictable image output.

⭐ Star Image Input (Dynamic) Usage Tips:

  • To effectively utilize the StarImageSwitch node, connect your primary image source to the first available input. This ensures that the node processes your desired image without defaulting to the placeholder.
  • Use the node in scenarios where you anticipate varying image inputs, as it can handle up to 20 different sources, providing flexibility and reducing the need for manual reconfiguration.

⭐ Star Image Input (Dynamic) Common Errors and Solutions:

No image connected

  • Explanation: This error occurs when no image is connected to any of the input slots, and the node defaults to generating a placeholder image.
  • Solution: Ensure that at least one image is connected to the node's input slots to avoid using the default image. Check your connections and verify that the intended image source is properly linked.

Unexpected output size

  • Explanation: The output image size may not match expectations if the node defaults to the placeholder image.
  • Solution: Verify that the correct image is connected to the input. If the output size is still unexpected, check the dimensions of the connected image to ensure they align with your project requirements.

⭐ Star Image Input (Dynamic) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_StarNodes
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.