Visit ComfyUI Online for ready-to-use ComfyUI environment
Upscale images to specified megapixels with flexible methods for AI artists seeking high-resolution without manual adjustments.
The ImageScaleToMegapixels
node is designed to upscale an image to a specified number of megapixels, ensuring that the total pixel count of the output image matches the desired value. This node is particularly useful for AI artists who need to increase the resolution of their images while maintaining a specific level of detail and quality. By leveraging various upscale methods, the node provides flexibility in how the image is resized, allowing you to choose the method that best suits your artistic needs. The primary goal of this node is to facilitate the creation of high-resolution images without the need for manual calculations or adjustments, making it an essential tool for enhancing image quality in a streamlined and efficient manner.
This parameter represents the input image that you want to upscale. The image should be provided in a format that the node can process, typically as a tensor or similar data structure.
This parameter allows you to select the method used for upscaling the image. The available options are "nearest-exact", "bilinear", "area", "bicubic", and "lanczos". Each method has its own characteristics and can affect the quality and appearance of the upscaled image. For example, "nearest-exact" is a simple and fast method, while "lanczos" provides higher quality at the cost of increased computational complexity.
This parameter specifies the target total number of megapixels for the upscaled image. It is a floating-point value with a default of 1.0, a minimum of 0.01, and a maximum of 16.0. Adjusting this value will directly influence the resolution of the output image, with higher values resulting in larger images.
The output parameter is the upscaled image, which has been resized to match the specified number of megapixels. The output image retains the original content but with increased resolution, making it suitable for high-quality prints or detailed digital artwork.
© Copyright 2024 RunComfy. All Rights Reserved.