Visit ComfyUI Online for ready-to-use ComfyUI environment
Resize images based on shorter side, maintain aspect ratio, crop option for specific size, high-quality resizing for AI artists.
The PM_ImageScaleShort node is designed to resize an image based on its shorter side, ensuring that the aspect ratio is maintained. This node is particularly useful for preparing images for further processing or for standardizing image sizes in a workflow. It offers an optional feature to crop the image to a specific size, which can be beneficial for focusing on particular areas, such as faces in portrait images. By leveraging advanced resampling techniques, the node ensures high-quality resizing, making it an essential tool for AI artists looking to optimize their images for various applications.
This parameter accepts the input image that you want to resize. The image should be in a compatible format that the node can process.
This parameter defines the target size for the shorter side of the image. The node will resize the image such that the shorter side matches this value while maintaining the aspect ratio. The default value is 512, with a minimum of 0 and a maximum of 2048, adjustable in steps of 1.
This boolean parameter determines whether the image should be cropped to focus on the face area after resizing. If set to true, the image will be resized and then cropped to ensure the face is centered and fits within the specified dimensions. The default value is false.
The output is the resized image, which has been adjusted according to the specified size and optionally cropped to focus on the face. The image is returned in a format compatible with further processing or display.
size
parameter to the desired value for the shorter side of the image.crop_face
parameter to focus on faces in portrait images, ensuring that the face is centered and fits within the specified dimensions.size
values to find the optimal resolution for your specific use case, balancing quality and performance.size
parameter is set to a value outside the allowed range (0 to 2048).size
parameter to a value within the allowed range.crop_face
parameter is set to true, but no face is detected in the image.crop_face
parameter to false if face detection is not required.© Copyright 2024 RunComfy. All Rights Reserved.