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.
Image Scale To
- image
- image
- width
- height
◄size720►
◄mode▾►
◄multiple_of16►
◄interpolation▾►
Categoryhermes/image
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| size | INT | 72064–8192 | Target length of the side picked by mode. |
| mode | COMBO | smallest: shorter side >= size (rounded up). largest: longer side <= size (rounded down). | |
| multiple_of | INT | 161–256 | Both output sides are snapped to a multiple of this (16 suits most video models). |
| interpolation | COMBO | 4 options: lanczos, bicubic, bilinear, nearest |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| width | INT | — |
| height | INT | — |