Outpaint(OutpaintStage)
The Outpaint node (class OutpaintStage) extends an image beyond its original borders using a selectable outpaint workflow.
Outpaint Stage
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
| Name | Type | Default | Range | Notes |
|---|---|---|---|---|
workflow | COMBO | - | - | Which outpaint workflow to run. The list is populated from the workflows available to ComfyTV. |
pad_left | INT | 0 | 0 to 4096 | Amount of padding added to the left edge. |
pad_top | INT | 0 | 0 to 4096 | Amount of padding added to the top edge. |
pad_right | INT | 0 | 0 to 4096 | Amount of padding added to the right edge. |
pad_bottom | INT | 0 | 0 to 4096 | Amount of padding added to the bottom edge. |
feathering | INT | 40 | 0 to 256 | Controls 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
| Name | Type | Notes |
|---|---|---|
image | COMFYTV_IMAGE | The 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
| Name | Type | Notes |
|---|---|---|
image | COMFYTV_IMAGE | The 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 above0to actually extend the canvas. With every padding at its default of0, 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
workflowfirst, since the available workflows determine how outpainted content is generated and what quality or style you get. - Keep
featheringin a moderate range such as the default40for most work. Lower it toward0only 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
4096pixels 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.