Construction and use of GitHub image bed (simplified version)

Construction and use of GitHub map bed

foreword

Simply record how to use GIthub as a picture bed. How to register on GIthub, how to install PicGo, and how to use Typora, I will not write here. If you are interested, you can read my previous two blogs.

  1. Typora+PicGO+gitee realizes the picture bed to solve the problem that Typora pictures do not display

  2. Typora installation and Markdown usage


1. Create a new repository

image-20230209222502081

​ What needs to be noted here is that the warehouse needs to be set to Public, otherwise it can only be uploaded in the end, but cannot be read, and then click to create a warehouse.


2. Apply for Token

​ Click on the profile picture – setting – Developer settings – click Generate new token as shown below.

image-20230209222854055

​ Generate Token as shown in the figure below. Note that the validity period can be set to a certain time, or it can be set to be permanent. It is safer to set a time period, but don’t forget to increase the validity period when it expires. The lower the authority, the better, just select the first repo, and click Generate Token.

image-20230209223024043

After that, a Token will be generated, be careful to copy it, it will only appear once! ! ! !

image-20230209223238515


3. PicGo configuration

​ Please copy your own name and warehouse name first! ! ! ! At the same time, pay attention not to have a / sign behind the warehouse name, otherwise the upload will not be successful. After configuring as shown in the figure, you're done, you can

image-20230209223709666

image-20230209223940861


4. Test

​ Test it out and you're doneimage-20230209224217227

Q&A:

  1. Why is the picture uploaded successfully but not displayed when using Typora?

    If GitHub itself is very slow to open, then naturally the pictures will not be displayed. Before, Gitee could be used as a picture bed, but later Gitee made certain restrictions.

  2. What should I do if the upload fails?

    Please check whether the name of the warehouse is filled in correctly, whether the / symbol is added at the end, and if it is added, please remove it

Guess you like

Origin blog.csdn.net/weixin_44904205/article/details/128971026