Nodes/WhiteRabbit/πŸ‡ Watermark
ComfyUI Node

πŸ‡ Watermark

GPU accelerated watermark overlay. TorchLanc resize for quality and speed. Works for single images, but efficient for batches, too!

By Artificial-SweetenerΒ·Created 12 months agoΒ·Updated 3 months agoΒ· 75
πŸ‡ Watermark
  • image
  • IMAGE
β—„watermarkβ–Ύβ–Ί
β—„positionbottom-rightβ–Ί
β—„scale70β–Ί
β—„transparency100β–Ί
β—„rotation0β–Ί
β—„padding_x0β–Ί
β—„padding_y0β–Ί
β—„optical_paddingfalseβ–Ί
β—„optical_strength40β–Ί
β—„max_batch_size0β–Ί
β—„sinc_window3β–Ί
β—„precisionfp32β–Ί
Categoryimage/post

Inputs (13)

NameTypeDefaultDescription
imageIMAGEImages to watermark. Accepts (H,W,C) or (B,H,W,C) with values in [0–1]. Processed on GPU.
watermarkCOMBOSelect or upload the watermark image (PNG recommended). The file’s transparency is preserved.
positionCOMBObottom-rightWhere to place the watermark. Padding is ignored when 'center' is selected. Rotation clips; no canvas expand.
scaleINT701–100Width-based scaling. Target watermark width = image width Γ— (scale/100). Aspect ratio preserved.
transparencyINT1000–100Alpha multiplier for the watermark: 100 = unchanged, 0 = fully transparent.
rotationINT00–359Rotate the watermark (degrees) with bicubic resampling. Canvas expands so nothing is clipped (PIL-style).
padding_xINT00–16384Extra horizontal padding in pixels from the chosen edge (ignored when position='center').
padding_yINT00–16384Extra vertical padding in pixels from the chosen edge (ignored when position='center').
optical_paddingBOOLEANfalseAdjust placement by the watermark’s visual center so equal padding looks right (optical alignment). Affects corner positions; ignored when position='center'.
optical_strengthINT400–100How strongly to nudge toward visual centering (0–100). 0 = off. Higher values shift more for wide/rotated marks.
max_batch_sizeINT00–4096Process images in chunks to control VRAM. 0 = process the whole batch at once.
sinc_windowINT31–8Lanczos window size (a) used when resizing the watermark. Higher = sharper (but more ringing).
precisionCOMBOfp32Resampling compute dtype. fp32 = safest quality; fp16/bf16 can be faster on many GPUs.

Outputs (1)

NameTypeDescription
IMAGEIMAGEβ€”