Skip to content

loongzhu/build-picture-bed-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

PicGo + GitHub to build a personal picture bed tool

1. GitHub repository settings

流程:新建 public 仓库 -> 创建 token -> 复制 token 备用

1.1 New repository

点击 git 主页右上角的 + 创建 New repository

填写仓库信息,例如我就创建了一个 MyNotesImg 的仓库。这里注意,仓库得设置为 Public 因为后面通过客户端访问算是外部访问,因此无法访问 Private ,这样的话图片传上来之后只能存储不能显示。所以要设置为 Public

Create_repository

1.2 Create token and copy and save

此时仓库已经建立,点击右上角头像,然后进入设置;

Settings

在页面最下找到 Developer settings,点击进入;

Developer_settrings

创建 token;

create_new_token

填写 Note,设置 Expiration,勾选复选框 repo ,接着到页面底部 Generate token 就完成了;

token_settings

然后复制生成一串字符 token,这个 token 只出现一次,所以要保存一下

token

2. PicGo client configuration

2.1 Download & install

PicGo git地址:PicGo

2.2 configuration

PicGo_Github_setting

  • 仓库名 即你的仓库名
  • 分支名 默认 master
  • Token 就是刚刚复制的那一串字符
  • 存储路径 这个可以填也可以不填,填了的话图片就上传到 git 中 data 这个文件夹
  • 域名

然后点确定就可以了。

然后关于上传的快捷键设置。默认的是 Mac 按键,推荐改成 Ctrl + alt +c(当然也可以不改)。

PicGo_hot_key

2.3 PicGo rename plugin

rename_plugin

我的插件重命名格式配置: {origin}({y}-{m}-{d}-{h}-{i}-{s})

my_plugin_config

具体配置 可参考 picgo-plugin-rename-file

3. My picgo settings

Details can be found at data.json

4. Typora uses PicGo to upload pictures

偏好设置 -> 图像 -> 上传服务设定 上传服务选择 "PicGo(app)",选择 PicGo 安装路径

typora_setting

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages