SeamlessClone
Paste anything into a photo and watch the seams vanish
- dst
- src
- src_mask
- IMAGE
SeamlessClone is the node that makes photomontage look like it was never montaged. It's OpenCV's seamlessClone, a Poisson blending routine that composites your source object into a destination image and then recomputes the pixels at the boundary so the seam disappears. Instead of a hard-edged paste that screams "I was photoshopped," you get the object's internal detail and texture preserved while its overall color and lighting blend into the destination. This is the classic trick for putting a product, a face, or an object into a scene where the original lighting doesn't match.
Inputs
dst- the background image you're pasting into.src- the object you're bringing over.src_mask- an image mask that says which pixels ofsrccount as the object. This is the one you'll spend time on; a good mask is the difference between clean and mushy.flag- the clone mode. NORMAL is the default and what you'll use most. MIXED blends the gradients of both images, which matters when the destination has its own texture you want to keep (a face on a textured background). MONO is monochrome transfer - it moves only shape and luminance, ignoring source color, so it's the one for transferring a pattern, texture, or emboss onto a surface of a totally different color.cx/cy- the center point indstwhere the object lands.
Output: a single IMAGE, the composited result.
The trap that catches everyone
cx and cy default to 0, 0 - which is the top-left corner of the destination, not the center. Paste with defaults and you'll see a weird quarter-object in the corner and assume the node is broken. It's not. Set the center to where you actually want the object. If you'd rather not think about it, the pack's SeamlessClone (simple) variant computes the center automatically from the mask's bounding box, which is the better starting point for most beginners.
How the modes differ in practice
NORMAL keeps the source's gradients inside the mask and adopts the destination's lighting - the result looks like the object was photographed in the scene. MIXED is the one to reach for when both images have texture that matters. And MONO is genuinely underrated for design work: paste a brick pattern onto a blue wall and you get the bricks in the wall's color. That's the mode people forget exists.
Installing
Ships in comfyui_bmad_nodes, bmad4ever's grab-bag of API, CV, and utility nodes. ComfyUI Manager - search "comfyui_bmad_nodes" (or "Bmad Nodes") - install, restart. Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/bmad4ever/comfyui_bmad_nodes
cd comfyui_bmad_nodes
pip install -r requirements.txt
Restart after. No model downloads. This is pure OpenCV (pinned to ~4.8 in the pack's requirements) - if startup prints "Not loaded: CV nodes," install the requirements and restart.
Honest advice: Poisson cloning is heavy-duty compositing, and it's a complement to, not a replacement for, inpainting-style workflows. Where it shines is when you already have a good object mask and you want believable lighting integration - then it's genuinely hard to beat, and it runs entirely on your machine in a second.
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| dst | IMAGE | — | |
| src | IMAGE | — | |
| src_mask | IMAGE | — | |
| flag | COMBO | NORMAL | 3 options: NORMAL, MIXED, MONO |
| cx | INT | 0 | — |
| cy | INT | 0 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |