ComfyUI Node
Image Resize Universal
A ComfyUI node in 1hewNodes/image/resize with 12 inputs and 2 outputs.
Image Resize Universal
- image
- mask
- get_image_size
- image
- mask
◄preset_ratioorigin►
◄proportional_width1►
◄proportional_height1►
◄methodlanczos►
◄scale_to_sideNone►
◄scale_to_length1024►
◄fitcrop►
◄pad_color1.0►
◄divisible_by8►
Category1hewNodes/image/resize
Inputs (12)
| Name | Type | Default | Description |
|---|---|---|---|
| preset_ratio | COMBO | origin | 11 options: origin, custom, 1:1, 3:2, 4:3, 16:9, +5 |
| proportional_width | INT | 11–8192 | — |
| proportional_height | INT | 11–8192 | — |
| method | COMBO | lanczos | 6 options: nearest, bilinear, lanczos, bicubic, hamming, box |
| scale_to_side | COMBO | None | 6 options: None, longest, shortest, width, height, length_to_sq_area |
| scale_to_length | INT | 10241–8192 | — |
| fit | COMBO | crop | 3 options: crop, pad, stretch |
| pad_color | STRING | 1.0 | — |
| divisible_by | INT | 81–1024 | — |
| imageopt | IMAGE | — | |
| maskopt | MASK | — | |
| get_image_sizeopt | IMAGE | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| mask | MASK | — |