Visit ComfyUI Online for ready-to-use ComfyUI environment
Resize images while maintaining aspect ratio, ideal for various applications.
The easy imageScaleDownToSize
node is designed to help you resize images to a specific dimension while maintaining the aspect ratio. This node is particularly useful when you need to downscale images to fit within a certain size constraint, either by ensuring the longer side or the shorter side matches the specified size. It provides a straightforward way to manage image dimensions without distorting the original aspect ratio, making it ideal for preparing images for various applications, such as web use, printing, or further processing in your AI art projects.
This parameter accepts the image or images you want to downscale. The input should be in the format of an image tensor, which the node will process to adjust its size according to the specified parameters.
This integer parameter defines the target size for the image downscaling. The value represents the dimension (in pixels) that the image will be scaled down to, either in terms of its width or height, depending on the mode selected. The default value is 512, with a minimum of 1 and a maximum that corresponds to the maximum resolution supported by your system.
This boolean parameter determines how the target size is applied. If set to True
(max mode), the node will scale the image so that the longer side matches the specified size. If set to False
(min mode), the node will scale the image so that the shorter side matches the specified size. This helps in maintaining the aspect ratio while ensuring the image fits within the desired dimensions. The default value is True
.
The output is the downscaled image, which retains the original aspect ratio but fits within the specified size constraints. This ensures that the image is resized appropriately without any distortion, making it suitable for various uses where specific dimensions are required.
mode
parameter to control whether the longer or shorter side should match the target size.size
parameter to a value that balances quality and loading speed, such as 800 pixels for the longer side.size
parameter to be within the acceptable range. Verify the maximum resolution supported by your system and ensure the size value is within this limit.mode
parameter is not set to a valid boolean value.mode
parameter is set to either True
or False
. This can be done by checking the input settings and correcting any invalid entries.© Copyright 2024 RunComfy. All Rights Reserved.