Visit ComfyUI Online for ready-to-use ComfyUI environment
Upscale latent images based on specified side length and scaling method, maintaining aspect ratio and original proportions.
The DF_Latent_Scale_to_side
node is designed to upscale latent images by adjusting their dimensions based on a specified side length and scaling method. This node is particularly useful for AI artists who need to resize latent images while maintaining the aspect ratio, ensuring that the upscaled images retain their original proportions. By allowing you to choose whether to scale based on the longest or shortest side, or explicitly by width or height, this node provides flexibility in how the latent images are resized. Additionally, it supports various scaling methods and cropping options to fine-tune the upscaling process, making it a versatile tool for enhancing the resolution of latent images in your AI art projects.
This parameter represents the latent image that you want to upscale. It is the core input for the node, containing the image data that will be processed.
This integer parameter specifies the target length for the chosen side (width or height) of the latent image. The node will scale the image such that the specified side matches this length. The default value is 512.
This parameter allows you to choose which side of the image to scale. Options include "Longest", "Shortest", "Width", and "Height". Depending on your choice, the node will adjust the dimensions of the latent image accordingly.
This parameter determines the method used for scaling the image. Available options are "nearest-exact", "bilinear", "bicubic", "bislerp", "area", and "lanczos". Each method offers different trade-offs between speed and quality, allowing you to select the most appropriate one for your needs.
This parameter specifies the cropping method to be used during the upscaling process. Options include "disabled" and "center". Choosing "disabled" will not apply any cropping, while "center" will crop the image from the center if necessary to maintain the aspect ratio.
The output is a latent image that has been upscaled according to the specified parameters. This upscaled latent image retains the original proportions and is ready for further processing or use in your AI art projects.
side
parameter.scale_method
options to find the best balance between processing speed and image quality for your specific use case.crop
parameter set to "center" if you need to ensure that the important parts of the image remain in focus after upscaling.side_length
parameter must be a positive integer.side_length
parameter.scale_method
parameter must be one of the predefined options.crop
parameter must be either "disabled" or "center".© Copyright 2024 RunComfy. All Rights Reserved.