Skip to main content

PoweredByNonebotLogo

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-watermarker

✨ 为你的bot发出的图片添加水印! ✨

license pypi python

📖简介

为bot发出的所有图片都加上水印(有的时候水印很烦,但是帅气的水印能增加图片的美感,不是吗?)

💿安装方法

nb脚手架

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-piugin-watermarker

pip

pip安装

命令行输入以下命令

pip install nonebot-plugin-watermarker

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入

plugins = ["nonebot_plugin_rename"]
[tool.nonebot]
plugins = []
plugin_dirs = ["src/plugins"]

⚙插件配置项

变量名 变量类型 变量概述 使用示例
watermark_image_path str 水印图片存放目录,目录下的所有水印图片会被随机选取 F:\image
watermark_image_size float 水印相对图片的大小(保持水印原来的形状) 0.15
watermark_image_exculed_plugin List[str] 不想被贴水印的插件 [插件位置.plugins.插件名称](如src.plugins.nonebot_plugin_petpet)

🎉目前已实现的功能

加水印捏

效果图

6PHLH{(JH $R~J2H@8{{XBE

太小了看不见放大看(

G37PR_ KAWEUINI_ _B)H2E

💡待实现的功能

  1. -[x] 对特定的插件的图片不进行贴水印操作
  2. -[x] 对GIF图片进行适配
  3. -[ ] 更多不同的贴水印方式
  4. -[ ] 贴图片怎么够,我要贴文字!
  5. -[ ] 待补充.....

💣已知bug

水印小概率贴不上,应该是base64的原因,但是我一直找不到真正的问题源,因为有时候贴的上有时候贴不上(已解决,base64解码问题,为末位不足位没有补上=)

🔥鸣谢

Nonebot2,不用说,没有Nonebot就没有这个插件

我自己,因为我做的PoweredByNonebot的Logo

💦其他

没有其他,想到再补

Metadata

Release files for nonebot-plugin-watermarker 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nonebot-plugin-watermarker 0.2.0
File Size Uploaded
nonebot_plugin_watermarker-0.2.0.tar.gz 6.5 kB Details

Release files / nonebot_plugin_watermarker-0.2.0.tar.gz

Download URL nonebot_plugin_watermarker-0.2.0.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a6f8e6d0f060fa7fbd91aac0004be9c38cc5eb2e2eb740cb41d653fb91316f71
BLAKE2b-256 checksum
How to use checksums
29df112e1e82212243ce994568a66d09fdcdca055bf3099bd51305ca47ece273
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 release file

0.1.5.1

1 release file

0.1.5

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page