ComfyUI Node

Resize Image

Resize an input image tensor using the same strategies as AUN Load & Resize Image, including FramePack buckets and fill/crop anchoring, but without handling file I/O.

By loz2754·Created 7 months ago·Updated about a month ago· 4
Resize Image
  • image
  • mask
  • IMAGE
  • MASK
  • width
  • height
resizefalse
use_framepack_bucketfalse
base_resolution640
width512
height512
methodkeep proportion
crop_positioncenter
interpolationlanczos
CategoryAUN Nodes/Image

Inputs (10)

NameTypeDefaultDescription
imageIMAGEImage tensor to resize.
resizeBOOLEANfalseEnable automatic resizing to specified dimensions. Maintains aspect ratio.
use_framepack_bucketBOOLEANfalseIf enabled (with resize), choose nearest FramePack bucket based on aspect ratio and base resolution.
base_resolutionINT640320–2048Base resolution for bucket scaling. 640 matches original; higher scales proportionally.
widthINT5120–2048Target width for resizing (8-pixel increments). Only used if resize is enabled.
heightINT5120–2048Target height for resizing (8-pixel increments). Only used if resize is enabled.
methodCOMBOkeep proportionResize strategy: stretch to exact size, keep aspect ratio, fill then crop, or pad to fit.
crop_positionCOMBOcenterWhen using fill / crop, choose which edge or center anchors the crop window.
interpolationCOMBOlanczosInterpolation filter used during resizing.
maskoptMASKOptional mask tensor resized alongside the image.

Outputs (4)

NameTypeDescription
IMAGEIMAGE
MASKMASK
widthINT
heightINT