ComfyUI Node
Image Resize w Matte
Resizes images with optional aspect preservation, divisibility constraints, and optional matte canvas compositing.
Image Resize w Matte
- image
- get_image_size
- IMAGE
- width
- height
◄width512►
◄height512►
◄upscale_methodlanczos►
◄keep_proportionfalse►
◄divisible_by2►
◄apply_mattefalse►
◄matte_width512►
◄matte_height512►
◄width_input—►
◄height_input—►
◄crop▾►
Categoryillumorae
Inputs (13)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| width | INT | 5120–4096 | — |
| height | INT | 5120–4096 | — |
| upscale_method | COMBO | lanczos | 5 options: nearest-exact, bilinear, area, bicubic, lanczos |
| keep_proportion | BOOLEAN | false | — |
| divisible_by | INT | 20–512 | — |
| apply_matte | BOOLEAN | false | — |
| matte_width | INT | 5120–4096 | — |
| matte_height | INT | 5120–4096 | — |
| width_inputopt | INT | — | |
| height_inputopt | INT | — | |
| get_image_sizeopt | IMAGE | — | |
| cropopt | COMBO | 2 options: disabled, center |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |
| width | INT | — |
| height | INT | — |