Nodes/Klinter_nodes/Outpaint Padding - Klinter
ComfyUI Node

Outpaint Padding - Klinter

Grow the canvas, mask the empty space, in one step

By klinter007·Created 3 years ago·Updated 9 months ago· 19
Outpaint Padding - Klinter
  • image
  • padded_image
  • padded_mask
  • zoomed out image
  • zoomed out mask
zoom_factor
mask_feather40
upscale_method

Outpainting - extending an image past its edges - has a fixed choreography in ComfyUI: put the image on a bigger canvas, mask the empty region, run an inpaint pass. Outpaint Padding - Klinter automates the setup half of that dance. You feed it an image, it pads it to a bigger canvas with mid-gray, computes the matching mask so only the empty border gets regenerated, and returns the whole kit in one go.

It returns four outputs, and understanding them is the key to actually using it. padded_image is your original image centered on a larger gray canvas (gray, not black or white - gray gives the inpaint model a neutral starting point). padded_mask covers exactly the padded border, so the sampler leaves your original pixels alone. Then there are the two named "zoomed out" outputs: zoomed out image and zoomed out mask, which resize the padded canvas back down to your original dimensions. That pair exists for the classic outpainting pattern where you outpaint in multiple passes, each pass shrinking the result back to a workable size before the next zoom.

The inputs that matter: zoom_factor (1.25x, 1.5x, or 2.0x - how much bigger the canvas gets), mask_feather (default 40, controls the soft transition band at the edge of your original image so the outpaint blends instead of showing a hard seam), and upscale_method (a dropdown from nearest-exact to lanczos, used for the zoomed-out resize). The feather is the one you'll actually tune - too low and you see a boundary, too high and the mask bleeds inward.

One honest note, grounded in where outpainting is heading: instruction-editing models have made masked canvas extension less essential for many people - you can often pad with a solid color and just ask the model to fill it. But if you're on a classic SD/SDXL inpaint workflow, or you specifically want a proper mask to feed a KSampler inpaint pass, this node hands you exactly that without any of the fiddly manual masking.

Install is the pack standard: search "Klinter_nodes" in ComfyUI Manager, or cd ComfyUI/custom_nodes && git clone https://github.com/klinter007/klinter_nodes then restart. No requirements.txt - it's torch-only, so no extra weight. Like the rest of the pack it needs a current ComfyUI core.

Reach for it when you want to extend an image without drawing a single mask by hand.

Categoryklinter

Inputs (4)

NameTypeDefaultDescription
imageIMAGE
zoom_factorCOMBO3 options: 1.25x, 1.5x, 2.0x
mask_featherINT400–100
upscale_methodCOMBO5 options: nearest-exact, bilinear, area, bicubic, lanczos

Outputs (4)

NameTypeDescription
padded_imageIMAGE
padded_maskMASK
zoomed out imageIMAGE
zoomed out maskMASK