Nodes/ComfyUI Text Processor/Resize Image Advanced
ComfyUI Node

Resize Image Advanced

Resizes image batches with KJ-style resize modes plus aspect-ratio target calculation and mask alignment.

By rookiestar28·Created 9 months ago·Updated 2 months ago· 16
Resize Image Advanced
  • image
  • mask
  • image
  • width
  • height
  • mask
resize_mode
width512
height512
aspect_ratio
proportional_width1
proportional_height1
fit
method
scale_to_side
scale_to_length1024
background_color#000000
crop_position
round_to_multiple0
device
CategoryComfyUI Text Processor/Image

Inputs (16)

NameTypeDefaultDescription
imageIMAGE
resize_modeCOMBO2 options: explicit, aspect_ratio
widthINT5120–16384
heightINT5120–16384
aspect_ratioCOMBO9 options: original, custom, 1:1, 3:2, 4:3, 16:9, +3
proportional_widthINT11–16384
proportional_heightINT11–16384
fitCOMBO10 options: fill, stretch, resize, letterbox, pad, pad_edge, +4
methodCOMBO7 options: nearest, nearest-exact, bilinear, area, bicubic, lanczos, +1
scale_to_sideCOMBO6 options: None, longest, shortest, width, height, total_pixel(kilo pixel)
scale_to_lengthINT10241–16384
background_colorSTRING#000000
crop_positionCOMBO5 options: center, top, bottom, left, right
round_to_multipleINT00–512
deviceCOMBO2 options: cpu, gpu
maskoptMASK

Outputs (4)

NameTypeDescription
imageIMAGEResized image batch.
widthINTFinal output width.
heightINTFinal output height.
maskMASKMask aligned to the resized image, or an empty mask when no mask is supplied.