Nodes/Nilor Nodes by Nilor Corp/๐Ÿ‘บ Resize Image v2
ComfyUI Node

๐Ÿ‘บ Resize Image v2

Resizes images with optional aspect preservation, padding/cropping, and sub-batching to lower peak memory.

By nilor-corpยทCreated 2 years agoยทUpdated 5 months agoยท 6
๐Ÿ‘บ Resize Image v2
  • image
  • mask
  • IMAGE
  • width
  • height
  • mask
โ—„width512โ–บ
โ—„height512โ–บ
โ—„upscale_methodโ–พโ–บ
โ—„keep_proportionfalseโ–บ
โ—„pad_color0, 0, 0โ–บ
โ—„crop_positioncenterโ–บ
โ—„divisible_by2โ–บ
โ—„deviceโ–พโ–บ
โ—„per_batch16โ–บ
CategoryNilor Nodes ๐Ÿ‘บ/Utilities

Inputs (11)

NameTypeDefaultDescription
imageIMAGEโ€”
widthINT5120โ€“9007199254740991โ€”
heightINT5120โ€“9007199254740991โ€”
upscale_methodCOMBO5 options: nearest-exact, bilinear, area, bicubic, lanczos
keep_proportionCOMBOfalse7 options: stretch, resize, pad, pad_edge, pad_edge_pixel, crop, +1
pad_colorSTRING0, 0, 0โ€”
crop_positionCOMBOcenter5 options: center, top, bottom, left, right
divisible_byINT20โ€“512โ€”
maskoptMASKโ€”
deviceoptCOMBO2 options: cpu, gpu
per_batchoptINT160โ€“4096Process images in sub-batches. 0 disables.

Outputs (4)

NameTypeDescription
IMAGEIMAGEโ€”
widthINTโ€”
heightINTโ€”
maskMASKโ€”