ComfyUI Node
Resize To Canvas Size
A ComfyUI node in image/transform with 10 inputs and 2 outputs.
Resize To Canvas Size
- image
- IMAGE
- padding_mask
◄width512►
◄height512►
◄anchorcenter►
◄scale_methodFit to Canvas short edge►
◄fill_methodcrop►
◄padding_fillblack►
◄custom_color_hex#000000►
◄noise_seed0►
◄custom_color_hex_input—►
Categoryimage/transform
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| width | INT | 5121–8192 | — |
| height | INT | 5121–8192 | — |
| anchor | COMBO | center | 9 options: top_left, top_center, top_right, middle_left, center, middle_right, +3 |
| scale_method | COMBO | Fit to Canvas short edge | 5 options: None – use original size, Fit to Canvas short edge, Fit to Canvas long edge, Fit to Canvas height, Fit to Canvas width |
| fill_method | COMBO | crop | 2 options: crop, stretch |
| padding_fill | COMBO | black | 6 options: black, white, gray_50, transparent, custom, noise |
| custom_color_hex | STRING | #000000 | — |
| noise_seed | INT | 00–18446744073709550000 | — |
| custom_color_hex_inputopt | STRING | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |
| padding_mask | MASK | — |