Skip to content
FunCoding

add_watermark

通过交互方式给 PDF 添加水印。当用户提到 PDF 互动加水印时使用。

Star
1,359
License
Apache-2.0
Last commit
Aug 20, 2026

skills/image/add_watermark/SKILL.md

View on GitHub

add_watermark Skill

给图片加水印

功能描述

向图片添加文字水印,支持自定义颜色、大小、透明度、间距、角度等参数。

所属分类

office/skills/image/add_watermark/

调用方式

from skills.image import add_watermark

add_watermark(
    file='./test.png',
    mark='python-office',
    output_path='./',
    color="#eaeaea",
    size=30,
    opacity=0.35,
    space=200,
    angle=30
)

参数说明

参数类型必填默认值说明
filestr是-图片位置
markstr是-水印内容
output_pathstr否'./'输出位置
colorstr否"#eaeaea"水印颜色
sizeint否30水印大小
opacityfloat否0.35不透明度,范围 0.01~1
spaceint否200水印间距
angleint否30水印角度

返回值

None

使用示例

from skills.image import add_watermark
add_watermark(file='./photo.jpg', mark='我的水印')

原始函数

office.api.image.add_watermark

Similar Skills

Featured

pdf

Read and edit PDFs: extract text and tables, merge, split, rotate, and fill forms.

ANanthropics/skills181k1,119 new stars in the last 7 days

Featured

canvas-design

Create posters and visual art as PNG or PDF, guided by a design philosophy.

ANanthropics/skills181k1,119 new stars in the last 7 days

Featured

docx

Create and edit Word docs with TOC, page numbers, headers and more.

ANanthropics/skills181k1,119 new stars in the last 7 days

Featured

doc-coauthoring

Co-write specs, proposals and decision docs through a structured, iterative workflow.

ANanthropics/skills181k1,119 new stars in the last 7 days

Featured

xlsx

Read and edit spreadsheets: add columns, compute formulas, format, and clean messy data.

ANanthropics/skills181k1,119 new stars in the last 7 days

Featured

pptx

Create and edit slide decks, generate slides from templates, and extract text.

ANanthropics/skills181k1,119 new stars in the last 7 days