Current chart bed pros and cons

  1. Weibo and other blogs map bed: more people used to use, from April 2019 began to open anti-theft chain, cool cool.
  2. Sm.ms: It has been operating for more than four years, but it is getting slower and slower. When it comes to night, you can’t open pictures directly, so the speed is worrying.
  3. Other niche beds: Always at risk of dying.
  4. Imgur and other foreign graphic beds: the speed of domestic access is too slow, there is a risk of being wall at any time.
  5. Quality storage services: such as qiuniuyun, Youpai Cloud, Tencent Cloud COS, Ali cloud OSS, cumbersome operation, and real-name authentication and domain name registration, etc. If the visit volume of the website is big after really, still buy the service such as bandwidth, charge by the month, cost is high.
  6. GitHub Map bed: free, but slow domestic access (take advantage of jsDelivr’s free CDN acceleration, chicken thief)

Set up the tutorial

  1. Create a GitHub repository
  2. Create a personal access token
  3. Configure PicGo Settings
  4. Upload the image to obtain the address of jsDelivr

Create a GitHub repository

Create a repository for images.

Generate personal access Token tokens

To set up

Function: authorize the operation authority of warehouse, realize automation through API.

Then fill in the Token description, check repo, Write, Read and click Generate Token to Generate a Token

Since the Token is only displayed once, save the notebook, etc.

Configuration PicGo

Go to the PicGo website

Once installed, start to configure the chart bed

  1. Set the repository name: fill in the username/repository name format (the repository you just created)

  2. Set the branch name to master

  3. Set Token: Paste the Token you were told to save.

  4. Set custom domain name: Its function is, after the image is uploaded, PicGo will be in accordance with the custom domain name + the name of the uploaded image to generate access links, put on the paste board. https://cdn.jsdelivr.net/gh/ username/warehouse

Upload picture test

After uploading the image, you can see the image in the album. Clicking on the copied URL is accelerated by jsdelivr CDN.

In addition, PicGo has album function, you can delete the uploaded pictures, modify links and other quick operations, PicGo can also generate different formats of links, support batch upload, shortcut key upload, custom link format, upload before renaming, etc., more functions to explore yourself!

In the end, the above steps are just tools to improve productivity. Knowing the rules for converting Github addresses to jsDelivr addresses can actually be enjoyable.

Branches and versions that cannot exceed 50M are blocked by jsDelivr. So if one branch is close to the critical value, just switch branches and continue.

Related articles

GitHub is supported through jsdelivr CDN

To subscribe to

Reference links:

www.cnblogs.com/sitoi/p/118…