Upscale Image:
The ImageScale node is designed to resize images to specific dimensions using various upscaling methods. This node is particularly useful for AI artists who need to adjust the size of their images while maintaining quality. By offering multiple upscaling techniques, it ensures that the resized images retain as much detail and clarity as possible. Whether you need to upscale an image for printing, web use, or further processing, the ImageScale node provides a flexible and efficient solution.
Upscale Image Input Parameters:
image
This parameter represents the input image that you want to resize. It is the primary data that the node will process.
upscale_method
This parameter allows you to choose the method used for upscaling the image. The available options are "nearest-exact", "bilinear", "area", "bicubic", and "lanczos". Each method has its own characteristics: "nearest-exact" is the simplest and fastest but may produce blocky results, "bilinear" and "bicubic" offer smoother results, "area" is good for downscaling, and "lanczos" provides high-quality results but is computationally intensive.
width
This parameter sets the desired width of the output image. The default value is 512, with a minimum of 0 and a maximum defined by MAX_RESOLUTION. If set to 0, the width will be automatically calculated based on the height to maintain the aspect ratio.
height
This parameter sets the desired height of the output image. The default value is 512, with a minimum of 0 and a maximum defined by MAX_RESOLUTION. If set to 0, the height will be automatically calculated based on the width to maintain the aspect ratio.
crop
This parameter determines how the image should be cropped if the aspect ratio of the input image does not match the desired output dimensions. The options are "disabled" and "center". "Disabled" will not crop the image, while "center" will crop the image from the center to fit the desired dimensions.
Upscale Image Output Parameters:
IMAGE
The output is the resized image. This image will have the dimensions specified by the width and height parameters and will be processed using the selected upscaling method. The output image retains as much detail and quality as possible, depending on the chosen upscaling technique.
Upscale Image Usage Tips:
- For high-quality upscaling, use the "lanczos" method, especially when enlarging images significantly.
- If you need to maintain the aspect ratio, set either the width or height to 0, and the node will automatically calculate the other dimension.
- Use the "center" crop method if you want to ensure the most important part of the image remains in the frame when resizing to a different aspect ratio.
Upscale Image Common Errors and Solutions:
Image dimensions exceed maximum resolution
- Explanation: The specified width or height exceeds the maximum allowed resolution.
- Solution: Ensure that the width and height parameters are within the allowed range defined by
MAX_RESOLUTION.
Invalid upscale method
- Explanation: The selected upscale method is not one of the available options.
- Solution: Choose an upscale method from the provided list: "nearest-exact", "bilinear", "area", "bicubic", or "lanczos".
Image input is not provided
- Explanation: The input image parameter is missing or not correctly specified.
- Solution: Make sure to provide a valid image as input to the node.
