md file image upload solution: Github+PicGo to build a picture bed

1. PicGo download

Download address: https://molunerfinn.com/PicGo/
Try to download stable versions
Insert image description here

2. Configure Github

1. Create a new warehouse to store pictures
Insert image description here
2. Generate a token for picGo to access github
Insert image description here
Insert image description here
. Fill in Note and check repo.
Insert image description here
Note that the generated token will only be displayed here once, so remember to save it separately.
Insert image description here

3. Configure PicGo

Insert image description here

  • Warehouse name: [github username]/[name of the newly created warehouse in the first step]
  • Branch: Default master, starting from 2020.10.01, the default branch name of github is changed to main
  • Set token: the previously created token
  • Specify storage path: You can fill it in or leave it blank. If filled in, the image will be stored in the img folder.
  • Set a custom domain name: https://cdn.jsdelivr.net/gh/[github user name]/[warehouse name]@main. Note that the branch here must be filled in @main, otherwise the master branch will be used by default. Now the default branch name created by github is main. If it is not specified, pictures will not be uploaded.

Replenish:
Originally, the custom domain name of github should be: https://raw.githubusercontent.com/[username]/[warehouse name],
but it is accessed in this way.

4. PicGo integrates Typora

Insert image description here
Insert image description here

4.1 picGo listening port settings

Insert image description here
Insert image description here
Ports in Typro:
Insert image description here

5. Test

Insert image description here
After the upload is successful, you can see the image in the warehouse:
Insert image description here

Guess you like

Origin blog.csdn.net/weixin_45136016/article/details/135344114