ComfyUI > Nodes > ComfyUI-RvTools_v2 > Image Switch

ComfyUI Node: Image Switch

Class Name

Image Switch [RvTools]

Category
🫦 RvTools II/ Switches
Author
r-vage (Account age: 317days)
Extension
ComfyUI-RvTools_v2
Latest Updated
2026-03-27
Github Stars
0.02K

How to Install ComfyUI-RvTools_v2

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

Image Switch Description

Facilitates dynamic image selection between two inputs based on conditions for flexible workflows.

Image Switch [RvTools]:

The Image Switch [RvTools] node is designed to facilitate the dynamic selection between two image inputs based on a specified condition. This node is particularly useful in workflows where you need to toggle between different image sources or outputs, allowing for greater flexibility and control in image processing tasks. By providing a simple mechanism to switch between images, it enhances the efficiency of your workflow, enabling you to easily manage and manipulate image data without the need for complex conditional logic. The primary goal of this node is to streamline the process of image selection, making it an essential tool for AI artists who require a straightforward method to alternate between image inputs.

Image Switch [RvTools] Input Parameters:

Input

The Input parameter is an integer that determines which image input will be selected and returned by the node. It accepts values of either 1 or 2, with a default value of 1. When set to 1, the node will output the first image input (input1), and when set to 2, it will output the second image input (input2). This parameter is crucial for directing the node to choose the desired image input, thereby influencing the node's execution and the resulting output.

input1

The input1 parameter is an optional image input that serves as one of the potential sources for the node's output. It is marked with forceInput: True, indicating that an image must be provided if this input is to be used. This parameter allows you to specify the first image that can be selected based on the Input parameter's value.

input2

Similar to input1, the input2 parameter is an optional image input that acts as the second potential source for the node's output. It also requires an image to be provided if it is to be utilized, as indicated by forceInput: True. This parameter allows you to specify the second image that can be selected based on the Input parameter's value.

Image Switch [RvTools] Output Parameters:

image

The image output parameter represents the selected image based on the Input parameter's value. It is the final output of the node, providing the image that corresponds to the chosen input. This output is essential for continuing the workflow with the selected image, enabling further processing or manipulation as needed.

Image Switch [RvTools] Usage Tips:

  • Ensure that both input1 and input2 are provided with valid images to avoid unexpected results or errors.
  • Use the Input parameter to dynamically switch between images in your workflow, allowing for flexible image processing based on different conditions or requirements.

Image Switch [RvTools] Common Errors and Solutions:

Missing Input: Image Switch has no active Input.

  • Explanation: This error occurs when neither input1 nor input2 is provided, leaving the node without an active image input to select from.
  • Solution: Ensure that at least one of the image inputs (input1 or input2) is supplied with a valid image to prevent this error.

Image Switch Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-RvTools_v2
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 Models, enabling artists to harness the latest AI tools to create incredible art.

Image Switch