ComfyUI Node

Stamp Censor

Scatter stamps over masked regions. Connect Stamp from Stamp Load or Stamp Custom Load.

By tsukino4a·Created 7 days ago·Updated 5 days ago· 2
Stamp Censor
  • image
  • mask
  • stamp
  • image
auto_rotatetrue
min_size24
max_size512
size_ratio0.28
target_coverage0.80
spacing_factor0.30
size_jitter0.15
angle_jitter0.0
uniform_packfalse
stamp_angle0
seed-1
Category4A/StampCensor

Inputs (14)

NameTypeDefaultDescription
imageIMAGESource image to stamp over.
maskMASKWhite areas are stamped. Each connected region is handled separately.
stampSTAMPConnect Stamp Load or Stamp Custom Load.
auto_rotateBOOLEANtrueOn: align to each mask region's long axis, then add the Stamp Load angle. Off: use the Stamp Load angle only.
min_sizeINT244–1024Smallest stamp size in pixels.
max_sizeINT5128–2048Largest stamp size in pixels. Size Ratio usually hits first.
size_ratioFLOAT0.280–2Stamp size as a fraction of the region's shorter side (1.0 = fill that width), before min/max clamp. Even pack: fraction of local scan width or the region's short axis; 1.0 = fill that span.
target_coverageFLOAT0.800.05–1Stop placing stamps in a region when this fraction of its mask is covered. Even pack: if a region got only one stamp and landed within 0.20 above this target, one extra stamp is placed.
spacing_factorFLOAT0.300–2Collision size of each stamp. 0 = allow full overlap. 1.0 = oriented boxes just touch. Even pack: overlap gate only; sites stay on the size-based skeleton. Below 1 overlaps, 1.0 = just touch.
size_jitterFLOAT0.150–0.9Random size variation around the base size.
angle_jitterFLOAT0.00–180Extra random rotation in degrees, added after auto-rotate or the load angle.
uniform_packBOOLEANfalseOn: slender regions scan the long axis; squat regions size to the short axis and brick-stagger. Coverage / min / max / spacing / size ratio / jitter still apply. Off: random samples.
stamp_angleFLOAT0-180–180Copied from Stamp Load. Added on top of auto-rotate when it is on.
seedoptINT-1-1–4294967295Optional. Connected: use this seed. Empty: randomize each queue.

Outputs (1)

NameTypeDescription
imageIMAGE