Nodes/ComfyUi-MpiNodes/Mpi Scaled Dimensions
ComfyUI Node

Mpi Scaled Dimensions

Scale image dimensions proportionally to target size, and output the image resized to those dimensions.

By MadPonyInteractive·Created 10 months ago·Updated 3 days ago· 2
Mpi Scaled Dimensions
  • image
  • scaled_width
  • scaled_height
  • is_portrait
  • scaled_image
size720
sidetrue
upscale_methodlanczos
CategoryMpiNodes/ImgOps

Inputs (4)

NameTypeDefaultDescription
imageIMAGE
sizeINT7200–4096If 0, it will output the original dimensions
sideBOOLEANtrue
upscale_methodCOMBOlanczosInterpolation used to resize the scaled_image output.

Outputs (4)

NameTypeDescription
scaled_widthINT
scaled_heightINT
is_portraitBOOLEAN
scaled_imageIMAGE