Resize Image (KJ/SET)

SET_ImageResize

Resizes the image to the specified width and height. Size can be retrieved from the input (when w=h=0) or a reference image. Keep proportions keeps the aspect ratio of the image, by highest dimension.

Pack: Image Misc

custom_nodes.ComfyUI-ImageMisc

Inputs (13)

NameTypeRequired
imageIMAGErequired
widthINTrequired
heightINTrequired
upscale_methodCOMBOrequired
keep_proportionCOMBOrequired
pad_colorSTRINGrequired
crop_positionCOMBOrequired
divisible_byINTrequired
maskMASKoptional
deviceCOMBOoptional
get_image_sizeIMAGEoptional
per_batchINToptional
pad_transparencyFLOAToptional

Outputs (4)

NameType
IMAGEIMAGE
widthINT
heightINT
maskMASK