Visit ComfyUI Online for ready-to-use ComfyUI environment
Adjust image dimensions based on predefined size categories for AI artists, offering small, medium, and large options.
The StandardSize
node is designed to adjust image dimensions based on predefined size categories, making it a valuable tool for AI artists who need to standardize image sizes for various applications. This node simplifies the process of resizing images by offering three size options: small, medium, and large. Each option automatically adjusts the image dimensions according to the aspect ratio, ensuring that the resized image maintains its visual integrity. By using this node, you can easily prepare images for different platforms or purposes without manually calculating the dimensions, thus saving time and reducing the potential for errors.
The width
parameter specifies the original width of the image in pixels. It is an integer value that influences the resizing process, as the node uses this dimension along with the height to determine the aspect ratio. This aspect ratio is then used to select the appropriate dimensions for the chosen size option. There are no specific minimum or maximum values provided, but it should be a positive integer representing the image's width.
The height
parameter defines the original height of the image in pixels. Similar to the width, it is an integer value that plays a crucial role in calculating the aspect ratio. The aspect ratio helps the node decide the best dimensions for the selected size option. Like the width, this should be a positive integer representing the image's height.
The size_option
parameter allows you to choose from three predefined size categories: "小尺寸" (small size), "中尺寸" (medium size), and "大尺寸" (large size). This selection determines the target dimensions for the image based on its aspect ratio. The default value is "中尺寸" (medium size), which provides a balanced resizing option. This parameter is crucial for tailoring the image size to specific needs or platform requirements.
The first output parameter is an integer representing the new width of the resized image. This value is determined based on the original dimensions and the selected size option, ensuring that the image is resized proportionally according to the predefined standards.
The second output parameter is an integer representing the new height of the resized image. Like the width, this value is calculated to maintain the aspect ratio and fit within the chosen size category, providing a consistent and visually appealing result.
size_option
parameter.size_option
is set to one of the three supported values: "小尺寸", "中尺寸", or "大尺寸".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.