安装PicGo
直接在设置中选择PicGo-Core,然后点下载或更新会自动下载好
image.png
点击
验证图片上传选项
可以看到picgo-core的目录
C:\Users\{username}\AppData\Roaming\Typora\picgo\win64\picgo.exe
image.png
安装gitee-uploader插件
这里安装两个插件,一个是上传到gitee的,一个是文件重命名的。要先到picgo.exe的目录下
.\picgo.exe install gitee-uploader super-prefix
修改配置
配置文件config.json
一般在这里C:\Users\{username}\.picgo\
{
"picBed": {
"current": "gitee",
"gitee": {
"repo": "{username}/{repoName}", // 如仓库地址为https://gitee.com/lkl/static-file则填lkl/static-file
"token": "personal access token", // 在这里添加 https://gitee.com/profile/personal_access_tokens
"path": "imgs", // 可自定义
"customUrl": "",
"branch": "master" // 默认分支
}
},
"picgoPlugins": {
"picgo-plugin-gitee-uploader": true,
"picgo-plugin-super-prefix": true
},
"picgo-plugin-super-prefix": {
"fileFormat": "win-YYYYMMDDHHmmss"
}
}
设置完成后可到typroa设置中再点击验证图片上传选项
验证