Nodes/ComfyUI_Swwan/Resize Image v2 (KJ Alternative)
ComfyUI Node

Resize Image v2 (KJ Alternative)

Resizes the image to the specified width and height. Size can be retrieved from the input. Keep proportions keeps the aspect ratio of the image, by highest dimension.

By aining2022·Created 9 months ago·Updated 5 days ago· 29
Resize Image v2 (KJ Alternative)
  • image
  • mask
  • IMAGE
  • width
  • height
  • mask
width512
height512
upscale_method
keep_proportionfalse
pad_color0, 0, 0
crop_positioncenter
divisible_by2
device
CategorySwwan/image

Inputs (10)

NameTypeDefaultDescription
imageIMAGE
widthINT5120–16384
heightINT5120–16384
upscale_methodCOMBO6 options: nearest-exact, bilinear, area, bicubic, lanczos, nvidia_rtx_vsr
keep_proportionCOMBOfalse8 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