ComfyUI Node
Composite Masked (Hash-Perfect)
Hard-mask composite. Pixels where mask >= threshold are taken from the edited image; all other pixels are copied verbatim from the original image, guaranteeing the non-edited region is bit-identical to the source.
Composite Masked (Hash-Perfect)
- destination
- source
- mask
- IMAGE
◄threshold0.50►
◄feather0.0►
Categoryimage/compositing
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| destination | IMAGE | Original (source) image. Used outside the mask. | |
| source | IMAGE | Edited image (e.g. VAEDecode output). Used inside the mask. | |
| threshold | FLOAT | 0.500–1 | Pixels with mask >= threshold become the edited image. |
| feather | FLOAT | 0.00–100 | Optional feather (in pixels) for a soft edge blend. 0 = pure hard mask (fully hash-perfect outside the mask). |
| maskopt | MASK | White = edited region, black = keep original. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |