/install signature-extractor
Signature Extractor
Extract 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.
When to Run
- User provides an image and asks to "remove background from signature", "make signature transparent", "extract signature", "remove stamp/印章"
- User asks to "darken signature ink", "make ink bolder", "填满笔迹", "加深签名"
- User asks to "upscale signature", "make signature clearer", "提高签名清晰度"
- User says "去掉底色", "去除背景", "签名透明", "提取签名", "去除印章"
Workflow
-
Identify the user's desired mode from their request:
Request keywords Mode What it does "填满", "加深", "实心", "加粗", "solid", default solid3x upscale + sharpen + pure black opaque ink "高清", "放大", "清晰", "upscale", "hd" hd3x upscale + sharpen + smooth alpha gradient "去掉底色", "提取", "简单去掉", "quick", "extract" extractOriginal size extraction with alpha gradient -
Run the extraction script:
python3 {baseDir}/scripts/extract_signature.py INPUT_IMAGE OUTPUT.png --mode MODE [--scale N]- Default scale is 3 (for
solidandhdmodes). Adjust--scaleif user specifies a different multiple. - Output is always RGBA PNG format.
- Default scale is 3 (for
-
After completion, report: output dimensions, ink pixel count, and share the result with the user.
How It Works
The script isolates black ink using a three-channel color filter:
- Brightness filter — pixels darker than a threshold are ink candidates
- Red channel filter — R minus G must be less than 40, which excludes red stamps/seals
- Saturation filter — low saturation ensures only true black/grey ink is captured, not colored marks
For solid and hd modes: LANCZOS upscaling → UnsharpMask sharpening → ink extraction → Alpha channel smoothing.
Prerequisites
pip install Pillow numpy
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install signature-extractor - After installation, invoke the skill by name or use
/signature-extractor - Provide required inputs per the skill's parameter spec and get structured output
What is Signature Extractor?
Extract clean, transparent-background signature ink from photos. Use when: user provides a photo of a handwritten signature and asks to remove the background... It is an AI Agent Skill for Claude Code / OpenClaw, with 66 downloads so far.
How do I install Signature Extractor?
Run "/install signature-extractor" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Signature Extractor free?
Yes, Signature Extractor is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Signature Extractor support?
Signature Extractor is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Signature Extractor?
It is built and maintained by anhao6170 (@anhao6170); the current version is v1.0.0.