返回顶部
p

photo-watermark照片水印

为照片添加可自定义的文字或图片水印。在处理图片、添加水印或批量处理照片时使用。支持JPG、PNG和其他常见图片格式。

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.5
安全检测
已通过
120
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

photo-watermark

照片水印添加器

概述

本技能使用文字或图片叠加层为照片添加专业水印。非常适合保护您的图片、品牌照片或添加版权信息。

快速开始

文字水印

bash

为单张图片添加文字水印

python scripts/add_watermark.py --input photo.jpg --text © 2026 您的名字 --position bottom-right

为多张图片添加文字水印

python scripts/add_watermark.py --input *.jpg --text 样例 --opacity 0.5

图片水印

bash

添加Logo水印

python scripts/add_watermark.py --input photo.jpg --watermark logo.png --scale 0.2 --position center

使用选项

位置选项

  • - top-left(左上), top-center(上中), top-right(右上)
  • center-left(左中), center(居中), center-right(右中)
  • bottom-left(左下), bottom-center(下中), bottom-right(右下)

自定义参数

  • - --opacity: 水印透明度 (0.0-1.0)
  • --scale: 图片水印的大小缩放因子
  • --font-size: 文字水印的字体大小
  • --color: 文字颜色,十六进制格式 (#RRGGBB)
  • --rotate: 旋转角度(度)

批量处理

一次处理多张图片:
bash
python scripts/add_watermark.py --input photos/*.jpg --text 草稿 --output watermarked/

示例

查看 examples/watermark-examples.md 获取详细的使用示例和示例输出。

故障排除

常见问题:

  • - 文件未找到:检查输入文件路径
  • 不支持的格式:使用JPG、PNG或GIF文件
  • 内存错误:分批次处理图片

详细故障排除指南请参见 examples/troubleshooting.md

脚本参考

主脚本:scripts/add_watermark.py
工具函数:scripts/utils.py
配置文件:scripts/config.py

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 photo-watermark-1776030723 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 photo-watermark-1776030723 技能

通过命令行安装

skillhub install photo-watermark-1776030723

下载

⬇ 下载 photo-watermark v1.0.5(免费)

文件大小: 52.04 KB | 发布时间: 2026-4-13 11:28

v1.0.5 最新 2026-4-13 11:28
- Added SECURITY_COMPLIANCE.md for improved security documentation.
- Added backup file install.py.bak.
- Added compiled Python file scripts/__pycache__/add_watermark.cpython-314.pyc.
- Removed install.py.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部