ComfyUI Node
RC Canvas Resize
Resize canvas and reposition image.
RC Canvas Resize
- image
- IMAGE
◄new_width512►
◄new_height512►
◄anchorcenter►
◄x_offset0►
◄y_offset0►
◄background_color_r0.00►
◄background_color_g0.00►
◄background_color_b0.00►
CategoryRC/Utilities
Inputs (9)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| new_width | INT | 51264–8192 | New canvas width |
| new_height | INT | 51264–8192 | New canvas height |
| anchor | COMBO | center | Image anchor position in new canvas: - center: Center - top_left: Top-left corner - top_center: Top center - top_right: Top-right corner - middle_left: Middle left - middle_right: Middle right - bottom_left: Bottom-left corner - bottom_center: Bottom center - bottom_right: Bottom-right corner |
| x_offset | INT | 0-4096–4096 | Additional X offset (pixels) |
| y_offset | INT | 0-4096–4096 | Additional Y offset (pixels) |
| background_color_r | FLOAT | 0.000–1 | Background color red component |
| background_color_g | FLOAT | 0.000–1 | Background color green component |
| background_color_b | FLOAT | 0.000–1 | Background color blue component |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |