ComfyUI Node
Resize Image Advanced
Resizes image batches with KJ-style resize modes plus aspect-ratio target calculation and mask alignment.
Resize Image Advanced
- image
- mask
- image
- width
- height
- mask
◄resize_mode▾►
◄width512►
◄height512►
◄aspect_ratio▾►
◄proportional_width1►
◄proportional_height1►
◄fit▾►
◄method▾►
◄scale_to_side▾►
◄scale_to_length1024►
◄background_color#000000►
◄crop_position▾►
◄round_to_multiple0►
◄device▾►
CategoryComfyUI Text Processor/Image
Inputs (16)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| resize_mode | COMBO | 2 options: explicit, aspect_ratio | |
| width | INT | 5120–16384 | — |
| height | INT | 5120–16384 | — |
| aspect_ratio | COMBO | 9 options: original, custom, 1:1, 3:2, 4:3, 16:9, +3 | |
| proportional_width | INT | 11–16384 | — |
| proportional_height | INT | 11–16384 | — |
| fit | COMBO | 10 options: fill, stretch, resize, letterbox, pad, pad_edge, +4 | |
| method | COMBO | 7 options: nearest, nearest-exact, bilinear, area, bicubic, lanczos, +1 | |
| scale_to_side | COMBO | 6 options: None, longest, shortest, width, height, total_pixel(kilo pixel) | |
| scale_to_length | INT | 10241–16384 | — |
| background_color | STRING | #000000 | — |
| crop_position | COMBO | 5 options: center, top, bottom, left, right | |
| round_to_multiple | INT | 00–512 | — |
| device | COMBO | 2 options: cpu, gpu | |
| maskopt | MASK | — |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | Resized image batch. |
| width | INT | Final output width. |
| height | INT | Final output height. |
| mask | MASK | Mask aligned to the resized image, or an empty mask when no mask is supplied. |