Home  >  Article  >  Development Tools  >  Share how to build a free personal picture bed on Gitee+PicGo (pictures and texts)

Share how to build a free personal picture bed on Gitee+PicGo (pictures and texts)

藏色散人
藏色散人forward
2023-03-25 15:51:092172browse
This article brings you relevant knowledge about Gitee PicGo. It mainly introduces how to build a free personal picture bed on Gitee PicGo. Friends who are interested can take a look below. I hope it will be helpful to everyone.

We usually use pictures when writing blogs or markdown. Once the markdown file is viewed offline, it will be difficult to maintain and display the pictures inside. At this time, you need to use a picture bed to use a network address for the pictures.

Why choose Gitee? Comparison:

  • Alibaba Cloud OSS, Tencent Cloud COS, Qiniu Tubed and other paid services

  • GitHub has free space, but the access speed is too fast Slow, it depends on luck.

  • Gitee has fast access speed, but the upper limit of a single warehouse is 500M, a single file is 50M, and the total user warehouse space is 5G. Taking everything into consideration, we can only choose Gitee because of its fast speed. The single database limit of 500M is barely enough. After one database is used up, we can create a new one.

After the picture storage problem is solved, you need a tool that can quickly upload and convert it into a link. The PicGo picture tool is recommended here. The so-called picture bed tool is a tool that automatically converts local pictures into links. Of course, PicGo not only supports Gitee, but also other github, Alibaba Cloud OSS, Tencent Cloud COS, etc.

Gitee Settings

After completing the Gitee account registration, create a public warehouse:

Share how to build a free personal picture bed on Gitee+PicGo (pictures and texts)

Find in order: Settings --Private token--Generate new token

First unselect all, then check projects, and then submit:

Share how to build a free personal picture bed on Gitee+PicGo (pictures and texts)

You are prompted to enter your gitee account password, just enter it.

Now you have obtained the private token, click Copy, save the token first and PicGo will use it later.

Note: After the window is closed, the private token will no longer be viewable.

gitee picture bed also has certain limitations: If you upload a picture larger than 1MB, the picture cannot be displayed after it is inserted into the markdown editor. We can first use an image compression tool to compress the image to less than 1MB, and then use Picgo to upload it to gitee for use.

PicGo usage configuration

Install PicGo and search for the Gitee plug-in Download address: github.com/Molunerfinn…

If it cannot be downloaded, I have uploaded the PicGo software and the latest version of the Typora software to Alibaba Cloud, and you can download it here: "PicGo Gitee", link: www.aliyundrive.com/s/YjSTNvzYa...

Share how to build a free personal picture bed on Gitee+PicGo (pictures and texts)

##After the installation is complete, enter PicGo's

settings - ->Plug-in settings, search gietee.

Click to install

gitee-uploader 1.1.2, and you can install it smoothly.

Share how to build a free personal picture bed on Gitee+PicGo (pictures and texts)

Note: If nodejs is not installed, you will be prompted and jump to guide you to install it. After completion, restart PicGo and search again.

nodeJs does not support win7 system until 14.0.0. You can only choose the previous version. The newer one is version 13.14.0

nodejs.org/download/re…

Enter the PicGo setting interface and find gitee on the left. Follow the figure below to configure the gitee image bed.

Share how to build a free personal picture bed on Gitee+PicGo (pictures and texts)

Among them:

  1. repofill in gitee account name/warehouse name , gitee account name/warehouse name can be copied from the web address of your gitee warehouse. Fill in master

    at
  2. branch. Fill in

  3. token with the private token obtained in the previous step. Fill in images

    where
  4. path, be careful not to leave any spaces.

  5. Leave the others as default and ignore them.

After filling in, click

Confirm and set it as the default image bed.

markdown usage configuration

Usually Typora is used to write Markdown. To facilitate the storage of image downloads

New version of Typora can be set up to upload with one click.

Click in turn: File--Preferences--Image, and configure as shown below:

Share how to build a free personal picture bed on Gitee+PicGo (pictures and texts)

Note: Select PicGo(app) for the upload service, and PicGo path select the installation directory to start the program.

After the image is pasted into Markdown, operation buttons will be displayed. Click to upload the image to upload and convert the corresponding link.

Share how to build a free personal picture bed on Gitee+PicGo (pictures and texts)

The above is the detailed content of Share how to build a free personal picture bed on Gitee+PicGo (pictures and texts). For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:juejin.im. If there is any infringement, please contact admin@php.cn delete