Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates image resolution selection and manipulation in ComfyUI for AI artists, offering predefined/custom sizes with scaling flexibility.
The FLUXResolutions
node is designed to facilitate the selection and manipulation of image resolutions within the ComfyUI framework. It provides a user-friendly interface for choosing from predefined resolution sizes or specifying custom dimensions, making it an essential tool for AI artists who need precise control over their image outputs. By allowing users to select a resolution and apply a multiplication factor, this node offers flexibility in scaling images to desired sizes, which is particularly useful in scenarios where specific resolution requirements are needed for different artistic projects. The node's ability to handle both predefined and custom sizes ensures that users can easily adapt their workflows to meet various creative demands, enhancing the overall efficiency and effectiveness of the image generation process.
This parameter allows you to choose from a list of predefined resolution sizes. Each option is presented in a format that includes a key and a descriptive name, making it easy to identify the desired resolution. Selecting a predefined size ensures consistency and accuracy in your image outputs, especially when working with standard dimensions.
The multiply_factor
is an integer that scales the selected resolution by a specified factor. The default value is 1, meaning no scaling is applied. You can increase this factor to enlarge the image dimensions proportionally. The minimum value is 1, ensuring that the resolution is not reduced below its original size.
This parameter allows you to manually specify the width of the image in pixels. If set to a value greater than 0, it overrides the width of the selected predefined size. The default value is 0, indicating that the predefined size should be used unless a custom width is specified. This flexibility is useful for creating images with non-standard dimensions.
Similar to manual_width
, this parameter lets you manually define the height of the image in pixels. A value greater than 0 will override the height of the selected predefined size. The default value is 0, which means the predefined size is used unless a custom height is provided. This option is beneficial for tailoring the image height to specific project needs.
The width
output parameter represents the final width of the image after applying the selected resolution and any scaling factors. It is an integer value that reflects the actual width in pixels, providing a clear indication of the image's horizontal dimension.
The height
output parameter indicates the final height of the image, calculated based on the selected resolution and scaling factors. This integer value represents the vertical dimension in pixels, ensuring that you have a precise understanding of the image's size.
size_selected
parameter to choose a predefined resolution that matches your project's requirements.multiply_factor
to quickly scale images up or down while preserving the aspect ratio, which is particularly useful for creating variations of the same artwork.manual_width
and manual_height
are set to values greater than 0 to override the predefined sizes effectively.sizes.json
file, which contains the predefined resolution sizes, is missing or not located in the expected directory.sizes.json
file is present in the same directory as the FLUXResolutions.py
script. If it's missing, recreate the file with the necessary resolution data.<size_selected>
'sizes.json
file.size_selected
value matches one of the keys in the sizes.json
file. If necessary, update the file to include the missing key or select a valid size.multiply_factor
is set to a value less than 1, which is not allowed.multiply_factor
to be 1 or greater to ensure valid scaling of the image dimensions.© Copyright 2024 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.