image
upscaling
Image Scale to Total Pixels

Image Scale To Total Pixels

comfyUI节点-ImageScaleToTotalPixels|图像按像素缩放

Documentation

  • Class name: ImageScaleToTotalPixels
  • Category: image/upscaling
  • Output node: False

The ImageScaleToTotalPixels node is designed for resizing images to a specified total number of pixels while maintaining the aspect ratio. It provides various methods for upscaling the image to achieve the desired pixel count.

Input types

ParameterComfy dtypeDescription
imageIMAGEThe input image to be upscaled to the specified total number of pixels.
upscale_methodCOMBO[STRING]The method used for upscaling the image. It affects the quality and characteristics of the upscaled image.
megapixelsFLOATThe target size of the image in megapixels. This determines the total number of pixels in the upscaled image.

Output types

ParameterComfy dtypeDescription
imageIMAGEThe upscaled image with the specified total number of pixels, maintaining the original aspect ratio.