Nodes/ComfyUi-MpiNodes/Mpi Image Resize
ComfyUI Node

Mpi Image Resize

Resizes the image to width x height. keep_proportion keeps the aspect ratio by the highest dimension (resize), pads the rest (pad*), crops to fill (crop) or targets a pixel count.

By MadPonyInteractive·Created about a year ago·Updated a day ago· 4
Mpi Image Resize
  • image
  • mask
  • IMAGE
  • width
  • height
  • mask
◄width512►
◄height512►
◄upscale_method▾►
◄keep_proportionstretch►
◄pad_color0, 0, 0►
◄crop_positioncenter►
◄divisible_by2►
◄device▾►
CategoryMpiNodes/KJ

Inputs (10)

NameTypeDefaultDescription
imageIMAGE—
widthINT5120–16384—
heightINT5120–16384—
upscale_methodCOMBO5 options: nearest-exact, bilinear, area, bicubic, lanczos
keep_proportionCOMBOstretch8 options: stretch, resize, pad, pad_edge, pad_edge_pixel, crop, +2
pad_colorSTRING0, 0, 0Color to use for padding.
crop_positionCOMBOcenter5 options: center, top, bottom, left, right
divisible_byINT20–512—
maskoptMASK—
deviceoptCOMBO2 options: cpu, gpu

Outputs (4)

NameTypeDescription
IMAGEIMAGE—
widthINT—
heightINT—
maskMASK—