ComfyUI Node
RC Canvas Padding
Adjust canvas size by adding padding margins.
RC Canvas Padding
- image
- IMAGE
◄top50►
◄bottom50►
◄left50►
◄right50►
◄fill_modecolor►
◄fill_color_r0►
◄fill_color_g0►
◄fill_color_b0►
◄background_alpha1.00►
CategoryRC/Utilities
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| top | INT | 50-8192–8192 | Top padding in pixels (negative values crop from top) |
| bottom | INT | 50-8192–8192 | Bottom padding in pixels (negative values crop from bottom) |
| left | INT | 50-8192–8192 | Left padding in pixels (negative values crop from left) |
| right | INT | 50-8192–8192 | Right padding in pixels (negative values crop from right) |
| fill_mode | COMBO | color | Fill mode: - color: Fill with solid color - edge: Extend edge pixels - mirror: Mirror edge content - transparent: Transparent fill (RGBA only) |
| fill_color_r | INT | 00–255 | Fill color red component (0-255) |
| fill_color_g | INT | 00–255 | Fill color green component (0-255) |
| fill_color_b | INT | 00–255 | Fill color blue component (0-255) |
| background_alpha | FLOAT | 1.000–1 | Background alpha/opacity (0.0=fully transparent, 1.0=fully opaque). Values <1.0 will output RGBA format. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |