Universal Watermarker

v2.0.0

Adds customizable text watermarks with adjustable opacity and layout to PDFs and images, saving results with wm_ prefix in the original folder.

1· 138·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for cribug/universal-watermarker.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Universal Watermarker" (cribug/universal-watermarker) from ClawHub.
Skill page: https://clawhub.ai/cribug/universal-watermarker
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install universal-watermarker

ClawHub CLI

Package manager switcher

npx clawhub@latest install universal-watermarker
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
medium confidence
Purpose & Capability
Name, description, SKILL.md, requirements.txt, and main.py all align: the code implements text watermarks for images and PDFs and saves outputs with a prefix in the original folder.
Instruction Scope
SKILL.md keeps scope to watermarking behavior (modes, parameters, and confirming output paths). It does not instruct reading unrelated system files or requiring unrelated credentials.
Install Mechanism
There is no install spec (instruction-only from registry), but main.py will at runtime fetch a font from raw.githubusercontent.com into ./fonts. Using raw.githubusercontent.com is a common, generally acceptable pattern for static assets, but it is an external network fetch and should be noted.
Credentials
The skill requests no environment variables or credentials. The code shown does not access secrets or unrelated system config; its write access is limited to creating a ./fonts folder and writing output files next to inputs.
Persistence & Privilege
Skill is not always-enabled, does not request persistent system-wide privileges, and does not modify other skills' configs. Its file writes are confined to fonts/ and the original file directories.
Assessment
This skill appears to do what it claims (watermark images/PDFs). Before installing: 1) Review the complete main.py (the provided excerpt is truncated) to confirm there are no additional network endpoints or unexpected behavior. 2) Note it will download a font at first run from https://raw.githubusercontent.com — verify that URL and the font license are acceptable for you. 3) Install dependencies (pypdf, reportlab, Pillow) in an isolated virtualenv or sandbox and run tests on non-sensitive files first. 4) Confirm output naming/paths (wm_ prefix, saved next to originals) are acceptable and that no unrelated files are modified. If you cannot review the full source, run it in a restricted environment or decline installation.

Like a lobster shell, security has layers — review code before you run it.

latestvk977mbq5pcxjg45jk55c8saa0184eenx
138downloads
1stars
3versions
Updated 2w ago
v2.0.0
MIT-0

Universal Watermarker Skill

一款具有高度工程化水准的文件防伪处理工具。支持 PDF 与图片混批,内置响应式排版引擎,字体自动映射与文件全内置,彻底解决乱码、水印移位与缩放兼容性问题。

核心模式 (Modes)

  1. diagonal (对角单水印 - 默认):水印从画面左下角贯穿至右上角。极客级三角函数计算,无论文档是横是竖,均能保证完美端对端覆盖。
  2. center (居中单水印):水平放置于文档核心视角的正中央。
  3. tile (全图平铺):满屏交叉斜向覆盖,极致防伪。

运行环境

  • Language: Python 3.8+
  • Dependencies: pypdf, reportlab, Pillow
  • OS Support: Windows, macOS, Linux (无系统级底层 GUI 依赖)

参数定义 (Parameters)

参数名类型必填默认值描述
fileslist/string待处理的文件路径(支持单个路径字符串或路径列表)。
textstring水印文字内容(如 "内部机密")。
opacityfloat0.3水印不透明度,范围 0.0 到 1.0。
scalefloatNone (智能默认)响应式字体比例 (0.0~1.0)。<br>diagonal 默认 0.8(占据对角线 80%)<br>center 默认 0.5(占据画面宽度 50%)<br>tile 默认 0.25
modestring"diagonal"渲染模式:"diagonal", "center", "tile"
angleint30水印倾斜角度(仅在 mode="tile" 时生效)。
auto_adjustboolTrue自动背景亮度感应,在 colorNone 时智能切换深色/浅色水印。
colorstring/tupleNone自定义水印颜色,可传入十六进制 "#FF0000" 或 RGB 元组 (255,0,0)。若设置,将无视自动亮度调节。
font_pathstring"./fonts/AlibabaPuHuiTi-3-65-Medium.ttf"字体文件路径,支持 .ttf 和 .ttc。

输入与输出规范 (I/O)

  • 存储位置: 处理后的文件直接保存在原文件所在目录下。
  • 命名约定: 输出文件名为 wm_ 前缀加上原文件名。

AI 调用指令参考 (Instructions for LLM)

  1. 语义推断:如果用户要求“防伪”、“机密保护”、“铺满”,请自动设置 mode="tile"。如果用户要求“淡一点”,请将 opacity 调低至 0.1-0.2。
  2. 确认闭环:执行 process_files 完毕后,必须向用户明确播报输出文件的确切路径和名称,不要让用户自己去寻找。

Comments

Loading comments...