Install
openclaw skills install signature-extractorExtract clean, transparent-background signature ink from photos. Use when: user provides a photo of a handwritten signature and asks to remove the background, make signature transparent, upscale resolution, deepen/darken ink, or remove red stamps/seals. NOT for: general photo background removal (use remove.bg or similar), color signature ink extraction, or document scanning/OCR tasks.
openclaw skills install signature-extractorExtract handwritten signature ink from photographs or scanned documents, producing a clean transparent-background PNG. Removes white/light backgrounds, red stamps/seals, and colored paper textures while preserving black ink strokes.
Identify the user's desired mode from their request:
| Request keywords | Mode | What it does |
|---|---|---|
| "填满", "加深", "实心", "加粗", "solid", default | solid | 3x upscale + sharpen + pure black opaque ink |
| "高清", "放大", "清晰", "upscale", "hd" | hd | 3x upscale + sharpen + smooth alpha gradient |
| "去掉底色", "提取", "简单去掉", "quick", "extract" | extract | Original size extraction with alpha gradient |
Run the extraction script:
python3 {baseDir}/scripts/extract_signature.py INPUT_IMAGE OUTPUT.png --mode MODE [--scale N]
solid and hd modes). Adjust --scale if user specifies a different multiple.After completion, report: output dimensions, ink pixel count, and share the result with the user.
The script isolates black ink using a three-channel color filter:
For solid and hd modes: LANCZOS upscaling → UnsharpMask sharpening → ink extraction → Alpha channel smoothing.
pip install Pillow numpy