Image Resize With Aspect Correction (Soze)

Image Resize With Aspect Correction

Resizes the image while keeping the aspect ratio, adjusting to fit the target dimensions based on aspect_correction. - 'crop': Resize to cover the target area, then crop to exact size. - 'pad': Resize to fit within the target area, then pad to exact size. - 'none': Resize to fit within the target area without cropping or padding, output size may not match exactly.

Pack: Quality of Life Nodes for ComfyUI

custom_nodes.ComfyUI_Soze

Inputs (7)

NameTypeRequired
imageIMAGErequired
widthINTrequired
heightINTrequired
aspect_correctionCOMBOrequired
pad_colorSTRINGrequired
crop_positionCOMBOrequired
maskMASKoptional

Outputs (4)

NameType
IMAGEIMAGE
widthINT
heightINT
maskMASK