You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.2 KiB
Markdown

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# picgo-plugin-bohe-uploader
PicGo plugin for Bohe uploader
## Install
进入`bohe-uploader`文件夹
安装依赖库
```bash
npm install
```
在 PicGo 插件管理中选择导入本地插件
选中项目的`bohe-uploader`文件夹
## Question
- 为什么需要安装依赖库
根据开发文档所示,本地开发需要导入依赖库
- 为什么云端下载时不需要npm install
不知道,目前本插件未发布到插件列表中
## Functional introduction
- `API地址` 请在网页后台获取
- `上传路径` 请根据所需情况填写,如:`api/images/posts` 请注意最后不可填写`/`
- `API Token` 为高级版的专属项,请在网页后台中获取
- `是否启用日期` 当启用时则在上传路径后添加年月日,即为api/images/2024/01/02
- `命名方式` 命名方式可取值1,2,3。1自动重命名2保留原文件名3自动重命名短链接模式
- `是否开启水印` 水印的样式请在网页后台中设置
- `是否启用压缩` 将图片进行压缩,※只有png和jpg(jpeg)格式的图片才可以被压缩,其他格式的文件会自动跳过。
- `压缩比例` 输入幅度`80`or`20`任意数值可根据该数值调整压缩质量