ComfyUI Node
Resize Image v2 (KJ Alternative)
Resizes the image to the specified width and height. Size can be retrieved from the input. Keep proportions keeps the aspect ratio of the image, by highest dimension.
Resize Image v2 (KJ Alternative)
- image
- mask
- IMAGE
- width
- height
- mask
◄width512►
◄height512►
◄upscale_method▾►
◄keep_proportionfalse►
◄pad_color0, 0, 0►
◄crop_positioncenter►
◄divisible_by2►
◄device▾►
CategorySwwan/image
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| width | INT | 5120–16384 | — |
| height | INT | 5120–16384 | — |
| upscale_method | COMBO | 6 options: nearest-exact, bilinear, area, bicubic, lanczos, nvidia_rtx_vsr | |
| keep_proportion | COMBO | false | 8 options: stretch, resize, pad, pad_edge, pad_edge_pixel, crop, +2 |
| pad_color | STRING | 0, 0, 0 | Color to use for padding. |
| crop_position | COMBO | center | 5 options: center, top, bottom, left, right |
| divisible_by | INT | 20–512 | — |
| maskopt | MASK | — | |
| deviceopt | COMBO | 2 options: cpu, gpu |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |
| width | INT | — |
| height | INT | — |
| mask | MASK | — |