Visit ComfyUI Online for ready-to-use ComfyUI environment
Automate image resolution optimization with multiplier-based width and height adjustment for specific size requirements.
The WidthHeightPicker
node is designed to help you easily determine the optimal resolution for your images by adjusting the width and height based on a specified multiplier and rounding them to the nearest multiple of a given value. This node is particularly useful for ensuring that your images conform to specific size requirements, which can be crucial for various applications such as printing, web design, or digital art. By automating the calculation of the final dimensions, the WidthHeightPicker
node saves you time and effort, allowing you to focus more on the creative aspects of your work.
The width
parameter specifies the initial width of the image in pixels. This value will be adjusted based on the output_multiplier
and then rounded to the nearest multiple of multiple_off
. The default value is 512 pixels.
The height
parameter specifies the initial height of the image in pixels. Similar to the width
parameter, this value will be adjusted based on the output_multiplier
and then rounded to the nearest multiple of multiple_off
. The default value is 512 pixels.
The output_multiplier
parameter is a floating-point value that scales the initial width and height. For example, a multiplier of 0.5 will reduce the dimensions by half. The default value is 0.5.
The multiple_off
parameter specifies the value to which the final width and height will be rounded. This ensures that the dimensions are multiples of this value, which can be important for certain applications. The default value is 64, with a minimum of 1 and a maximum of 264.
The width
output parameter provides the final calculated width of the image after applying the output_multiplier
and rounding to the nearest multiple of multiple_off
. This value ensures that the image width is optimized for your specific needs.
The height
output parameter provides the final calculated height of the image after applying the output_multiplier
and rounding to the nearest multiple of multiple_off
. This value ensures that the image height is optimized for your specific needs.
output_multiplier
for both width and height.multiple_off
parameter to match the requirements of your target application, such as print sizes or screen resolutions.output_multiplier
is not a floating-point number.output_multiplier
parameter.multiple_off
value is outside the specified range of 1 to 264.multiple_off
value to be within the range of 1 to 264.© Copyright 2024 RunComfy. All Rights Reserved.