Visit ComfyUI Online for ready-to-use ComfyUI environment
Flexible image size selection for AI art projects with predefined and custom dimensions validation.
The JNodes_ImageSizeSelector node is designed to provide flexibility in selecting image sizes for your AI art projects. It allows you to choose from a list of common image sizes or specify custom dimensions if needed. This node ensures that the selected or custom dimensions are valid and suitable for further processing, making it a valuable tool for artists who need precise control over their image dimensions. By using this node, you can easily switch between predefined sizes or input your own, ensuring that your images meet the required specifications for your creative projects.
This parameter allows you to select a common image size from a predefined list of options. The available sizes include various standard dimensions such as "128x128", "256x256", "512x512", and up to "7680x4320". This selection provides a quick and easy way to choose a commonly used image size without needing to input custom dimensions.
This boolean parameter determines whether to use a custom image size instead of the selected common size. If set to True
, the node will use the values provided in custom_size_x
and custom_size_y
to define the image dimensions. The default value is False
.
This integer parameter specifies the custom width of the image when use_custom_size
is enabled. The value must be greater than or equal to 2. If the value is less than 2, it will be adjusted based on the value of custom_size_y
if it is valid. The default value is 512.
This integer parameter specifies the custom height of the image when use_custom_size
is enabled. The value must be greater than or equal to 2. If the value is less than 2, it will be adjusted based on the value of custom_size_x
if it is valid. The default value is 512.
This boolean parameter allows you to flip the width and height values. If set to True
, the width and height values will be swapped. This can be useful for quickly changing the orientation of the image dimensions. The default value is False
.
This output parameter represents the width of the image after processing the input parameters. It ensures that the width is valid and greater than or equal to 2, providing a suitable dimension for further image processing.
This output parameter represents the height of the image after processing the input parameters. It ensures that the height is valid and greater than or equal to 2, providing a suitable dimension for further image processing.
image_size
parameter to quickly select a common image size for standard projects, saving time on manual input.use_custom_size
when you need specific dimensions that are not available in the predefined list, ensuring your image meets unique requirements.flip_width_and_height
parameter to easily switch between landscape and portrait orientations without manually adjusting the dimensions.custom_size_x
and custom_size_y
are set to values greater than or equal to 2. If one of the dimensions is invalid, it will be adjusted based on the other valid dimension if possible.© Copyright 2024 RunComfy. All Rights Reserved.