Nodes/RC Image Compositor/RC Canvas Padding
ComfyUI Node

RC Canvas Padding

Adjust canvas size by adding padding margins.

By kj863257·Created 11 months ago·Updated 9 months ago· 16
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)

NameTypeDefaultDescription
imageIMAGE
topINT50-8192–8192Top padding in pixels (negative values crop from top)
bottomINT50-8192–8192Bottom padding in pixels (negative values crop from bottom)
leftINT50-8192–8192Left padding in pixels (negative values crop from left)
rightINT50-8192–8192Right padding in pixels (negative values crop from right)
fill_modeCOMBOcolorFill mode: - color: Fill with solid color - edge: Extend edge pixels - mirror: Mirror edge content - transparent: Transparent fill (RGBA only)
fill_color_rINT00–255Fill color red component (0-255)
fill_color_gINT00–255Fill color green component (0-255)
fill_color_bINT00–255Fill color blue component (0-255)
background_alphaFLOAT1.000–1Background alpha/opacity (0.0=fully transparent, 1.0=fully opaque). Values <1.0 will output RGBA format.

Outputs (1)

NameTypeDescription
IMAGEIMAGE