Typora+PicGo-core 实现图片自动上传

在Typora中安装PicGo-core

image-20210301151027421

安装插件

  1. 找到PicGo安装路径

    1
    /home/maqi/.config/Typora/picgo/linux/picgo

    image-20210301151218251

  2. 安装插件

    gitee-uploader即可

1
2
3
.\picgo install smms-user
.\picgo install gitee-uploader
.\picgo install github-plus
  1. 修改配置文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
"picBed": {
"current": "gitee",
"uploader": "gitee",
"githubPlus": {
"branch": "master",
"customUrl": "https://cdn.jsdelivr.net/gh/用户名/项目名",
"path": "img/",
"repo": "github用户名/github仓库名",
"token": "自己的token"
},
"gitee": {
"customUrl": "",
"repo": "Asimok/picgo",
"branch": "master",
"token": "ae27b6635e613294f7131c20669d940d",
"path": "img/linux"
},
"smms-user": {
"Authorization": "替换成你自己的token"
},
"transformer": "path"
},
"picgoPlugins": {
"picgo-plugin-gitee-uploader": true,
"picgo-plugin-smms-user": true,
"picgo-plugin-github-plus": true
},
"picgo-plugin-gitee-uploader": {
"lastSync": "2021-03-01 03:12:33"
},
"picgo-plugin-github-plus": {
"lastSync": "2020-04-07 11:09:08"
}
}
  1. 验证即可