Image: Downscale to Total Pixels (lab)

ImageDownscaleToTotalPixels

Downscale an image to match target size in megapuxels. If the image is smaller than the target size, it is kept as is. Note: image may be cropped, to prevent stretching and preserve aspect ratio.

Pack: ComfyLab Pack

custom_nodes.ComfyLab-Pack

Inputs (4)

NameTypeRequired
imageIMAGErequired
downscale_methodCOMBOrequired
megapixelsFLOATrequired
multiple_ofINTrequired

Outputs (4)

NameType
imageIMAGE
widthINT
heightINT
actual_sizeFLOAT