Nodes/Hermes Nodes/Image Scale To
ComfyUI Node

Image Scale To

Scales an image so its shorter (or longer) side matches a target size, keeping aspect ratio and snapping both sides to a multiple.

By Lannister34·Created 10 months ago·Updated 10 days ago· 1
Image Scale To
  • image
  • image
  • width
  • height
◄size720►
◄mode▾►
◄multiple_of16►
◄interpolation▾►
Categoryhermes/image

Inputs (5)

NameTypeDefaultDescription
imageIMAGE—
sizeINT72064–8192Target length of the side picked by mode.
modeCOMBOsmallest: shorter side >= size (rounded up). largest: longer side <= size (rounded down).
multiple_ofINT161–256Both output sides are snapped to a multiple of this (16 suits most video models).
interpolationCOMBO4 options: lanczos, bicubic, bilinear, nearest

Outputs (3)

NameTypeDescription
imageIMAGE—
widthINT—
heightINT—