Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates dynamic image selection based on boolean condition for streamlined image processing automation.
The easy imageSwitch
node is designed to facilitate the selection between two images based on a boolean condition. This node is particularly useful when you need to dynamically choose between two different images during your workflow, depending on a specific condition or state. By leveraging this node, you can streamline your image processing pipeline, ensuring that the appropriate image is used without manual intervention. This can be especially beneficial in scenarios where automated decision-making is required, such as in conditional rendering or adaptive image processing tasks.
image_a
is the first image input for the node. This image will be selected if the boolean condition is met (i.e., if the boolean parameter is set to True
). This parameter does not have a default value and must be provided by the user.
image_b
is the second image input for the node. This image will be selected if the boolean condition is not met (i.e., if the boolean parameter is set to False
). Similar to image_a
, this parameter does not have a default value and must be provided by the user.
boolean
is a boolean parameter that determines which image will be selected. If set to True
, image_a
will be chosen; if set to False
, image_b
will be chosen. The default value for this parameter is False
.
The output is a single image, which will be either image_a
or image_b
depending on the value of the boolean parameter. This output allows you to continue your workflow with the selected image, ensuring that the correct image is used based on the specified condition.
boolean
parameter to dynamically switch between images based on conditions in your workflow. For example, you can use this node to select different background images based on user input or other criteria.image_a
and image_b
are provided and are of the same dimensions to avoid any inconsistencies in the output.image_a
or image_b
is not provided.image_a
and image_b
are specified as inputs to the node.image_a
and image_b
have different dimensions.© Copyright 2024 RunComfy. All Rights Reserved.