Nodes/ComfyUI-Pixaroma/Inpaint Stitch Pixaroma
ComfyUI Node

Inpaint Stitch Pixaroma

Paste your inpaint back so nobody can tell

By pixaroma·Created 5 months ago·Updated 4 days ago· 357
Inpaint Stitch Pixaroma
  • image
  • mask
  • crop_info
  • image
  • original
softness-1
blend_modefrom crop
color_matchoff

Inpaint Stitch Pixaroma is the second half of the crop-and-stitch inpaint that Inpaint Crop Pixaroma starts: it takes your freshly inpainted crop and pastes it back onto the original at the exact spot it came from, blended so the seam vanishes. If Inpaint Crop is the setup, this is the payoff - and it's the node that makes the whole "bit-identical outside the mask" promise of traditional inpainting real.

You wire the crop_info output from Inpaint Crop into this node's crop_info input, and your processed crop (after the sampler or edit model) into image. The node resizes the crop back to the original region and, by default, blends only the painted area back in - everything outside the mask stays pixel-perfect, untouched by the model. That's the whole value proposition of masked inpainting in one sentence, and it's worth re-reading if you're coming from whole-image edit models: those regenerate the frame and drift the details; this one guarantees the untouched pixels are literally the originals.

The killer feature: instant tweaking

Because Stitch sits after the sampler, the seam settings are free to fiddle. Change softness, blend_mode, or color_match here and only this node re-runs - the sampler stays cached on a fixed seed, so you're iterating in a blink instead of re-generating the image each time. That's the workflow: run once, then scrub the blend until the seam disappears.

The three controls, briefly:

  • softness - how far the seam feathers. Default is -1, meaning use the value set on the Inpaint Crop node. Set 0–150 to override it right here. One caveat: if you go bigger than the room the crop left you, the edge can show slightly harder - raise the Crop node's softness for more feathering room.
  • blend_mode - from crop (use what Crop set), mask (replace only the painted area), or whole crop (replace the whole box - for when the model relit or changed the surroundings and you want the full result).
  • color_match - off, subtle, or strong. This corrects a color/tone shift the model introduced by matching the unchanged surroundings around your mask. Keep it Off when you deliberately changed colors, or it'll pull them right back. No live preview - set it and re-run.

There's also an optional mask input that limits the blend to a specific area (resized to the crop region); leave it unconnected and the painted mask carried in crop_info handles the mask-aware blend.

The outputs

  • image - the original image with the inpainted crop blended back in place. This is your final.
  • original - the untouched full image, straight from crop_info. Wire both into Image Compare Pixaroma for an instant before/after slider. The pack clearly expects you to do exactly that.

If you leave crop_info unwired, the image just passes straight through - the node won't crash, it just has nothing to stitch with.

Installing it

Same single pack as everything here - ComfyUI-Pixaroma. ComfyUI Manager search Pixaroma, Install, restart, or:

cd ComfyUI/custom_nodes
git clone https://github.com/pixaroma/ComfyUI-Pixaroma

No extra dependencies. After a pack update, hard-refresh the browser tab (Ctrl+Shift+R / Cmd+Shift+R) - the pack's standing advice, because a stale cached editor looks broken when it isn't.

Category👑 Pixaroma/✂️ Resize & Crop

Inputs (6)

NameTypeDefaultDescription
imageIMAGEYour inpainted crop (after the model). Resized back to the original crop region automatically if its size differs.
maskoptMASKOptional. Limits the blend to this area (resized to the crop region). If omitted, the painted mask carried in crop_info is used for the mask-aware blend.
crop_infooptPIXAROMA_CROP_INFOWire the crop_info output of Inpaint Crop Pixaroma here. If left unwired, the image passes straight through.
softnessoptINT-1-1–150Seam feather, overriding the Inpaint Crop node's softness. -1 = use the Crop node's value. Set 0-150 to tune the blend HERE - because Stitch is after the sampler, only this node re-runs (the sampler stays cached on a fixed seed), so it is instant. Going bigger than the room the crop left may show a slightly harder edge - raise the Crop node's softness for more room.
blend_modeoptCOMBOfrom cropOverride the Crop node's blend mode. 'from crop' = use what the Crop node set. 'mask' = replace only the painted area. 'whole crop' = replace the entire cropped box. Like softness, changing it here re-runs only this node (no re-sample).
color_matchoptCOMBOoffCorrect a color/tone shift the model introduced, matching the unchanged surroundings around your mask. Keep it Off when you deliberately changed colors (it would pull them back). No live preview - set it and re-run.

Outputs (2)

NameTypeDescription
imageIMAGEThe original image with the inpainted crop blended back in place.
originalIMAGEThe full original uncropped image (from crop_info) - wire it together with the result into Image Compare Pixaroma for a before / after.