ComfyUI Node
Pad Image to Square
Scales the longest side to `size` and centers the image on a square canvas of the fill color.
Pad Image to Square
- image
- image
◄size0►
◄fill_color_hex#FFFFFF►
Categoryhermes/image
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| size | INT | 00–8192 | Target square size. 0 = use longest side of input image. |
| fill_color_hexopt | STRING | #FFFFFF | Fill color as hex (#RRGGBB or #RGB). |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |