Nodes/ComfyUI-QG-tools/Outpaint Board
ComfyUI Node

Outpaint Board

Grow the canvas outwards and hand back both the padded picture and a mask of the new area. Input pixels are copied, never resampled, so the picture sits exactly where it did. Drive it from the panel: drag the four sides, or click outside the frame to snap that side to the cursor.

By live1617·Created about a month ago·Updated a day ago· 4
Outpaint Board
  • image
  • mask
  • image
  • mask
  • has_padding
◄unitpixels►
◄left0►
◄right0►
◄top0►
◄bottom0►
◄max_output_side0►
◄divisible_by0►
◄pad_color#808080►
CategoryQG-tools/Image

Inputs (10)

NameTypeDefaultDescription
imageIMAGEThe picture to grow. Padding is added around it; the picture itself is copied into the bigger canvas, never resampled or cropped.
unitCOMBOpixelspixels: the four side values are literal pixels. percent: left/right read against the width, top/bottom against the height.
leftINT00–16384How far to grow the left side. pixels: literal pixels; percent: a share of the width. 0 = none.
rightINT00–16384How far to grow the right side. pixels: literal pixels; percent: a share of the width. 0 = none.
topINT00–16384How far to grow the top side. pixels: literal pixels; percent: a share of the height. 0 = none.
bottomINT00–16384How far to grow the bottom side. pixels: literal pixels; percent: a share of the height. 0 = none.
max_output_sideINT00–163840 = no ceiling. When the canvas would go past it, only the padding is trimmed - the picture is never cropped or rescaled. A picture already over the limit drops all padding and says so.
divisible_byINT00–2560 = leave the canvas alone. Above 1 the canvas is rounded up to a multiple of this, and the extra goes on the right and bottom, so the picture keeps its position. 8 / 16 / 32 / 64 are the usual picks.
pad_colorSTRING#808080Fill for the new area. Takes #RRGGBB, #ABC, a colour name such as gray, 128,128,128, or 0.5.
maskoptMASKOptional existing repaint mask. It is copied into the output mask inside the frame; every new pixel is 1.0.

Outputs (3)

NameTypeDescription
imageIMAGE—
maskMASK—
has_paddingBOOLEAN—