Nodes/ComfyUI Assistant Node/PVL Image Resize
ComfyUI Node

PVL Image Resize

Resizes the image to the specified width and height. Keep proportions maintains the aspect ratio of the image. Downsize only prevents upscaling when enabled. Supports RGB and RGBA images.

By pvlprk·Created about a year ago·Updated 8 months ago· 1
PVL Image Resize
  • image
  • IMAGE
  • width
  • height
width512
height512
upscale_method
keep_proportionresize
pad_color0, 0, 0
crop_positioncenter
divisible_by2
downsize_onlyfalse
devicecpu
CategoryPVL_tools

Inputs (10)

NameTypeDefaultDescription
widthINT5120–8192
heightINT5120–8192
upscale_methodCOMBO5 options: nearest-exact, bilinear, area, bicubic, lanczos
keep_proportionCOMBOresize5 options: stretch, resize, pad, pad_edge, crop
pad_colorSTRING0, 0, 0Color to use for padding (RGB or RGBA). Example: '255, 255, 255, 0' for transparent white.
crop_positionCOMBOcenter5 options: center, top, bottom, left, right
divisible_byINT20–512
downsize_onlyBOOLEANfalseOnly resize if target dimensions are smaller than original.
imageoptIMAGE
deviceoptCOMBOcpu2 options: cpu, gpu

Outputs (3)

NameTypeDescription
IMAGEIMAGE
widthINT
heightINT