Nodes/Canvas/Canvas Transform
ComfyUI Node

Canvas Transform

A ComfyUI node in CanvasNodes with 8 inputs and 1 output.

By leocbehe·Created about a year ago·Updated about a year ago· 0
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)

NameTypeDefaultDescription
input_canvas_imageIMAGE
operationCOMBOcrop2 options: crop, grow
grow_modeCOMBOconstant4 options: constant, reflect, replicate, circular
grow_fill_valueFLOAT0.000–1Value to fill new pixels with if grow_mode is 'constant'
margin_tINT00–4096Number of pixels to crop/grow from the top of the canvas
margin_bINT00–4096Number of pixels to crop/grow from the bottom of the canvas
margin_lINT00–4096Number of pixels to crop/grow from the left of the canvas
margin_rINT00–4096Number of pixels to crop/grow from the right of the canvas

Outputs (1)

NameTypeDescription
transformed_canvasIMAGE