ComfyTV/Imagegenerated

Outpaint(OutpaintStage)

The Outpaint node (class OutpaintStage) extends an image beyond its original borders using a selectable outpaint workflow.

Outpaint Stage

image
image
workflow
COMBO
pad_left
0
pad_top
0
pad_right
0
pad_bottom
0
feathering
40
ComfyTV

Description

The Outpaint node (class OutpaintStage) extends an image beyond its original borders using a selectable outpaint workflow. It takes an input image from the ComfyTV image type, applies the chosen padding on each side, and runs the configured workflow to generate the new surrounding content. The result is returned as a ComfyTV image that can be passed to downstream nodes in the same pipeline.

The node lives in the ComfyTV/Image category. Padding is controlled independently for each direction, and a feathering control blends the transition between the original image and the newly generated area.

Inputs

Required

NameTypeDefaultRangeNotes
workflowCOMBO--Which outpaint workflow to run. The list is populated from the workflows available to ComfyTV.
pad_leftINT00 to 4096Amount of padding added to the left edge.
pad_topINT00 to 4096Amount of padding added to the top edge.
pad_rightINT00 to 4096Amount of padding added to the right edge.
pad_bottomINT00 to 4096Amount of padding added to the bottom edge.
featheringINT400 to 256Controls how softly the seam between the original image and the outpainted region is blended.

workflow

Selects which outpaint workflow is executed. Different workflows can be registered with ComfyTV, so the available choices depend on your installation. This widget is required; there is no implicit default workflow fallback.

pad_left, pad_top, pad_right, pad_bottom

Each of these values specifies how many pixels are added on the corresponding side of the input image. All four default to 0, which means no extension in that direction. The allowed range is 0 to 4096 in steps of 1. Because the paddings are independent, you can outpaint only one side, all four sides, or any combination in between.

feathering

An integer in the range 0 to 256 (default 40) that determines how gradual the blend is at the junction between the original pixels and the generated content. A value of 0 produces a hard seam, while larger values spread the transition over more pixels. Tune this when a visible border or color mismatch appears where the original image meets the new area.

Optional

NameTypeNotes
imageCOMFYTV_IMAGEThe source image to outpaint. This input is optional.

image

The input image to be extended. It uses the COMFYTV_IMAGE type produced by other ComfyTV nodes. The input is optional, so the node can be wired without it, but supplying an image is what gives the padding and feathering something to operate on.

Outputs

NameTypeNotes
imageCOMFYTV_IMAGEThe outpainted image, including the original content plus the generated padding.

The single output is a COMFYTV_IMAGE of the enlarged canvas. Connect it to downstream ComfyTV nodes that expect the same image type, or to any adapter that converts it back to a standard image for saving or display.

Usage Notes

  • Set at least one of the four pad_* values above 0 to actually extend the canvas. With every padding at its default of 0, the node has no new region to generate.
  • The overall output dimensions are the input dimensions plus the corresponding left, right, top, and bottom padding.
  • Choose the workflow first, since the available workflows determine how outpainted content is generated and what quality or style you get.
  • Keep feathering in a moderate range such as the default 40 for most work. Lower it toward 0 only if you want a sharp, deliberate edge, and raise it when the transition needs to be more subtle.
  • Because all padding values allow up to 4096 pixels per side, large expansions are possible. Very large paddings can take noticeably longer, depending on the selected workflow.

Comments

Sign in with GitHub to join the discussion.

Loading comments…