Nodes/ComfyUI-RMBG/Canvas (RMBG)
ComfyUI Node Runs on cloud

Canvas (RMBG)

A ComfyUI node in 🧪AILab/🖼️IMAGE with 8 inputs and 2 outputs.

By 1038lab·Created 2 years ago·Updated 2 days ago· 2,196
Canvas (RMBG)
  • background_color
  • Background
  • layer_1
  • IMAGE
  • MASK
◄canvas_width640►
◄canvas_height360►
◄backgroundAlpha►
◄fit_background_sizefalse►
◄canvas_state{}►
Category🧪AILab/🖼️IMAGE

Inputs (8)

NameTypeDefaultDescription
canvas_widthINT64064–8192Canvas width in pixels when not fitting background image size.
canvas_heightINT36064–8192Canvas height in pixels when not fitting background image size.
backgroundCOMBOAlphaChoose background type: Alpha (transparent) or Color (custom background color).
background_colorCOLORCODE#222222Pick background color (use color picker).
fit_background_sizeBOOLEANfalseWhen True, canvas dimensions match the background image. When False, canvas dimensions use canvas_width and canvas_height.
canvas_stateSTRING{}Serialized JSON layout containing layer coordinates, scales, rotations, and order.
BackgroundoptIMAGEOptional background image input.
layer_1optIMAGELayer 1 image input.

Outputs (2)

NameTypeDescription
IMAGEIMAGE—
MASKMASK—