Nonebot2 简单图片操作插件
Project description
nonebot-plugin-imagetools
Nonebot2 插件,用于一些简单图片操作
安装
- 使用 nb-cli
nb plugin install nonebot_plugin_imagetools
- 使用 pip
pip install nonebot_plugin_imagetools
本插件使用了 go-cqhttp 的 send_group_forward_msg
和 send_private_forward_msg
接口 来发送合并转发消息,使用了 upload_group_file
和 upload_private_file
接口 来上传文件
发送私聊合并转发消息需要使用 v1.0.0-rc2
版本以上的 go-cqhttp
上传私聊文件需要使用 v1.0.0-rc3
版本以上的 go-cqhttp
配置项
展开/收起
imagetools_zip_threshold
- 类型:
int
- 默认:
20
- 说明:输出图片数量大于该数目时,打包为zip以文件形式发送
max_forward_msg_num
- 类型:
int
- 默认:
99
- 说明:合并转发消息条数上限
使用
以下命令需要加命令前缀 (默认为/
),可自行设置为空
操作名 + [图片] 或 回复图片
发送“图片操作”可显示支持的指令列表
支持的操作
- 水平翻转/左翻/右翻
- 竖直翻转/上翻/下翻
- 旋转 + 角度
- 缩放 + 尺寸或百分比,如:
缩放 100x100
;缩放 200x
;缩放 150%
- 裁剪 + 尺寸或比例,如:
裁剪 100x100
;裁剪 2:1
- 反相/反色
- 灰度图/黑白
- 轮廓
- 浮雕
- 模糊
- 锐化
- 像素化 + 像素尺寸,默认为 8
- 颜色滤镜 + 16进制颜色代码 或 颜色名称,如:
颜色滤镜 #66ccff
;颜色滤镜 green
- 纯色图 + 16进制颜色代码 或 颜色名称
- gif倒放/倒放
- gif正放倒放/正放倒放
- gif变速 + 倍率,如:
gif变速 0.5x
;gif变速 50%
- gif分解
- 四宫格
- 九宫格
- 文字转图 + 文字,支持少量BBcode
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for nonebot_plugin_imagetools-0.1.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f27bcc8880b8c25d4f160887a18e4fc9ba5021abbd8aed56aea552038bdc9632 |
|
MD5 | 5b2e9ae6ba2dbd0c8b76a68ccafd94bb |
|
BLAKE2b-256 | bcba83d5dcaa74bae0d488b13093d20183e8426e0981d68176eb041f5a314779 |
Close
Hashes for nonebot_plugin_imagetools-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 972c3a3eb436fc19897b3de9c61c5f481cc7363a93fd113265934667fb475383 |
|
MD5 | f3f5a0e876584c9fa54bee0b0ab382e3 |
|
BLAKE2b-256 | 1b74bbbdf5e19a203cb500b2f8d693ec356b31fd0e16971dee6e9d749f5d573f |