ComfyUI Node
Canvas Transform
A ComfyUI node in CanvasNodes with 8 inputs and 1 output.
Canvas Transform
- input_canvas_image
- transformed_canvas
◄operationcrop►
◄grow_modeconstant►
◄grow_fill_value0.00►
◄margin_t0►
◄margin_b0►
◄margin_l0►
◄margin_r0►
CategoryCanvasNodes
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| input_canvas_image | IMAGE | — | |
| operation | COMBO | crop | 2 options: crop, grow |
| grow_mode | COMBO | constant | 4 options: constant, reflect, replicate, circular |
| grow_fill_value | FLOAT | 0.000–1 | Value to fill new pixels with if grow_mode is 'constant' |
| margin_t | INT | 00–4096 | Number of pixels to crop/grow from the top of the canvas |
| margin_b | INT | 00–4096 | Number of pixels to crop/grow from the bottom of the canvas |
| margin_l | INT | 00–4096 | Number of pixels to crop/grow from the left of the canvas |
| margin_r | INT | 00–4096 | Number of pixels to crop/grow from the right of the canvas |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| transformed_canvas | IMAGE | — |