Visit ComfyUI Online for ready-to-use ComfyUI environment
Automatically switch resolution settings based on conditions for images or videos, enhancing efficiency and output quality.
The LF_ResolutionSwitcher node is designed to dynamically switch between different resolution settings based on a specified condition. This node is particularly useful in scenarios where you need to adapt the resolution of an image or a video stream depending on certain criteria, such as performance requirements or visual quality needs. By automating the resolution switching process, this node helps streamline workflows and ensures that the appropriate resolution is used in different contexts, enhancing both efficiency and output quality.
This parameter specifies the resolution value to be used if the boolean condition is true. It allows you to define a higher or lower resolution setting that will be applied when the condition is met. The value should be a valid resolution format, such as "1920x1080" for Full HD.
This parameter specifies the resolution value to be used if the boolean condition is false. Similar to the on_true
parameter, it allows you to define an alternative resolution setting that will be applied when the condition is not met. The value should be a valid resolution format, such as "1280x720" for HD.
This boolean parameter determines which resolution setting to apply. If set to true, the on_true
resolution will be used; if set to false, the on_false
resolution will be applied. This parameter acts as the switch that controls the resolution output based on the specified condition.
The output parameter resolution
provides the selected resolution value based on the boolean condition. It returns either the on_true
or on_false
resolution, depending on the state of the boolean parameter. This output is crucial for ensuring that the correct resolution is applied in your workflow, adapting to the specified conditions dynamically.
on_true
and on_false
are in a valid format and supported by your system or application.on_true
or on_false
is not in a valid format.© Copyright 2024 RunComfy. All Rights Reserved.