基于 imgkb.com 图床开发了一个 PicGo 插件
source link: https://hellodk.cn/post/953
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
基于 imgkb.com 图床开发了一个 PicGo 插件
picgo-plugin-imgkb
PicGo upload plugin for imgkb.com.
这是一个基于 imgkb.com 图床的 PicGo 图片上传插件。基于 PicGo V2.3.0
开发。
项目源码在 picgo-plugin-imgkb
imgkb.com 是一个宣称永久免费的图床,支持永久外链,全球 CDN 分发。
建议大家注册使用,注册即可免费获得 10GB 的空间,注册用户采用备案域名,使用全球 CDN 加速;未注册用户采用国内服务器进行全球加速。
安装和使用
1. 在线安装
打开 PicGo 详细窗口,选择插件设置,搜索 imgkb (author 是 hellodk
) 安装。
2. 离线安装
克隆该项目,解压缩并 cd 到路径 /path/to/picgo-plugin-imgkb
,执行
npm install ./picgo-plugin-imgkb
。
3. 使用方法
注册好图床网站账号后进入 https://imgkb.com/user/settings.html 页面
- 查看自己的
token
,妥善保存,请勿泄露,后续设置 PicGo 需要填入此token
默认上传文件夹
可以不配置,设置后默认上传至该路径
配置该图床并设为默认图床
由于源站使用 Let's Encrypt 颁发的免费证书,有效期只有 90 天,在测试上传中经常遇到 certificate has expired
错误,打开开关 Ignore certificate error
即可成功上传。
开源许可证
Released under the MIT License.
标签: git, npm, 图床, GitHub, TypeScript
本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK