Typora+PicGo-Core(command line)+SMMS、github、gitee实现Typora图片上传到图床
2021-02-06 02:14
标签:erro 图片 size 错误 json 原因 文件 设定 出现 Typora+PicGo-Core(command line)+SMMS、github、gitee实现Typora图片上传到图床 1 安装插件 最近写博文,原来用的SMMS作为图床突然间抽风,出现下面错误
因此改用gitee作为图床。 原因:由于PicGo-Core(command line)没有包含gitee插件,因此只安装gitee插件 第一步: 中间一定要申请自己的API 第二步: 指定存储路径:一般写/img,会在设定的仓库中创建img文件夹,也可以取另外的名字。 Typora+PicGo-Core(command line)+SMMS、github、gitee实现Typora图片上传到图床 标签:erro 图片 size 错误 json 原因 文件 设定 出现 原文地址:https://www.cnblogs.com/IT-cute/p/13122302.html
2 配置config.json
2.1 设置SMMS
2.2 设置gitee
2.3 设置github
2020-05-27 19:27:18 [PicGo INFO] Before transform
2020-05-27 19:27:18 [PicGo INFO] Transforming...
2020-05-27 19:27:18 [PicGo INFO] Before upload
2020-05-27 19:27:18 [PicGo INFO] Uploading...
2020-05-27 19:27:19 [PicGo WARN] failed
2020-05-27 19:27:19 [PicGo ERROR] StatusCodeError: 503
1 安装插件
C:\Users\ggk\AppData\Roaming\Typora\picgo\win64
.\picgo.exe install smms-user
.\picgo.exe install gitee-uploader
.\picgo.exe install github-plus
2 配置config.json
C:\Users\ggk\AppData\Roaming\Typora\picgo\win64
picgo set uploader
C:\Users\ggk\AppData\Roaming\Typora\picgo\win64
picgo use uploader
2.1 设置SMMS
{
"picBed": {
"current": "smms-user",
"uploader": "smms-user",
"smms-user": {
"Authorization": ""
},
"transformer": "path"
},
"picgoPlugins": {
"picgo-plugin-smms-user": true
}
}
2.2 设置gitee
{
"picBed": {
"current": "gitee",
"gitee": {
"repo": "IT-cute/Picbed",
"branch": "master",
"token": " ",
"path": "img/",
"customPath": "default",
"customUrl": "https://gitee.com/IT-cute/Picbed/raw/master/"
},
"uploader": "gitee",
"transformer": "path"
},
"picgoPlugins": {
"picgo-plugin-gitee-uploader": true,
"picgo-plugin-smms-user": true
},
"picgo-plugin-gitee-uploader": {
"lastSync": "2020-05-28 12:21:13"
}
}
2.3 设置github
{
"picBed": {
"current": "github",
"github": {
"repo": "IT-cute/Picbed",
"branch": "master",
"token": "",
"path": "img/",
"customUrl": "https://github.com/IT-cute/Picbed"
},
"uploader": "github",
"transformer": "path"
},
"picgoPlugins": {
"picgo-plugin-gitee-uploader": true,
"picgo-plugin-smms-user": true
}
}
上一篇:回发保留前台添加的html
下一篇:1、CSS的3种写入方式
文章标题:Typora+PicGo-Core(command line)+SMMS、github、gitee实现Typora图片上传到图床
文章链接:http://soscw.com/index.php/essay/51577.html