barkure

barkure

telegram
github

jsDelivr + Github = Image hosting?

jsDelivr#

jsDelivr is the only licensed public CDN in mainland China. For more information, please visit the official website: https://www.jsdelivr.com/

image

Image Hosting#

  • Weibo Image Hosting: It used to be popular, but anti-leeching measures were implemented starting from April 2019, so it's not as reliable anymore.

  • SM.MS: It has been operating for several years, but the speed is slightly slower during the evening.

  • Other image hosting platforms, niche image hosting platforms: They are unstable, slow, and there is a risk of them shutting down.

  • Object storage provided by cloud computing vendors: Such as Qiniu, Upyun, Alibaba OSS, Tencent COS, etc. They have capacity limitations, complicated operations, and require record filing and real-name registration. The traffic fees are also not cheap (if you have money and don't mind the trouble, then ignore what I just said).
    A few months later: COS is really good.

jsDelivr + Github#

After all the introduction, we can finally get to today's topic.

Github can be used as an image storage bucket, and jsDelivr can provide nationwide CDN acceleration for it (operated by Wangsu Technology, so the speed is fast).

Both Github and jsDelivr are reputable companies, so there is no need to worry about them shutting down. Moreover, you have control over the images, so there is no need to worry about being banned.

Here is a test image:
https://cdn.jsdelivr.net/gh/barkure/image@master/test.jpg

The direct link to the image uploaded to Github is as follows:
https://cdn.jsdelivr.net/gh/username/Repository@master/file.jpg

username is the Github username
Repository is the corresponding repository name
master is the corresponding branch (default is master)
file.jpg is the corresponding image (file) name

Using with PicGo#

Of course, you can also use it with PicGo for a more convenient experience. There are plenty of tutorials available, and here is one from SegmentFault → Link

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.