Nodes/comfyui_qwen_edit_pixel_perfect/Composite Masked (Hash-Perfect)
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.

By oron1208·Created about a month ago·Updated about a month ago· 14
Composite Masked (Hash-Perfect)
  • destination
  • source
  • mask
  • IMAGE
threshold0.50
feather0.0
Categoryimage/compositing

Inputs (5)

NameTypeDefaultDescription
destinationIMAGEOriginal (source) image. Used outside the mask.
sourceIMAGEEdited image (e.g. VAEDecode output). Used inside the mask.
thresholdFLOAT0.500–1Pixels with mask >= threshold become the edited image.
featherFLOAT0.00–100Optional feather (in pixels) for a soft edge blend. 0 = pure hard mask (fully hash-perfect outside the mask).
maskoptMASKWhite = edited region, black = keep original.

Outputs (1)

NameTypeDescription
IMAGEIMAGE