ComfyUI Node
Light-Tool: Ratio Padder
Resize image to fit target ratio and pad with white background.
Light-Tool: Ratio Padder
- image
- image
◄target_ratio1:1►
◄custom_ratio►
◄base_size1024►
◄color_hex#FFFFFF►
◄use_hextrue►
◄R255►
◄G255►
◄B255►
CategoryComfyUI-Light-Tool/image/Resize
Inputs (9)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| target_ratio | COMBO | 1:1 | 6 options: 1:1, 9:16, 16:9, 4:3, 3:2, 2:3 |
| custom_ratio | STRING | — | |
| base_size | INT | 102464–4096 | — |
| color_hex | STRING | #FFFFFF | — |
| use_hex | BOOLEAN | true | — |
| R | INT | 2550–255 | — |
| G | INT | 2550–255 | — |
| B | INT | 2550–255 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |