Use typora+PicGo+Gitee to simply realize the picture upload function

This article implements typora image upload function by configuring PicGo+Gitee, the system is window

Note that the downloaded list includes: PicGo, node.js, and the configuration includes: PicGo, node.js, gitee, typora

It is actually not difficult to look complicated, but it is cumbersome and there are not many pitfalls. It is easy to complete the configuration step by step according to the tutorial.

1. Download and install PicGo

PicGoDownload

Visit the official website of PicGo and find a stable version: 2.3.1

image-20230717164854625

Download 64-bit exe:

image-20230717164930682

After downloading, it is a simple installation and configuration. Just pay attention to changing the installation location ( the path will be used later ), and don’t worry about the rest.

After running, you will find out why PicGo cannot be started, and there is no task bar below. Actually it's just in the right taskbar .

image-20230717165414189

After opening, the interface as shown in the figure:

image-20230717165435840

PicGo configuration

Click the plugin settings, search for gitee, and install the plugin in the red box:gitee-uploader 1.1.2

image-20230717165603470

But there may be problems with small partners. This is because this plugin needs to install node.js. If node.js is not installed, you can refer to this article for detailed steps to install NodeJS under Windows .

After the installation is complete node -vand npm -vcheck whether the installation is successful:

image-20230717170227237

Two, Gitee configuration

Click the image bed settings, pull down to find gitee, and the following interface is displayed:

image-20230717170353007

We only need to configure the following parameters:

  • repo : Fill in the gitee account name/warehouse name. For example, xxx/yyy
  • branch : just fill in the master.
  • token : Fill in the private token obtained from the warehouse, and how to obtain it will be described later.
  • path : just fill in img. That is, the path where the image is stored.

(1) New warehouse

image-20230717170955152

The warehouse name is random, such as gitee_img; select a single branch.

image-20230717171159797

Then initialize the readme operation and set the warehouse as open source . Because it can only be specified as private when created.

image-20230717171514564

image-20230717171539805

Then generate a private token:

image-20230717171647874

Find the private token:

image-20230717171837406

Click Generate New Token:

image-20230717172014945

Save the private token:

image-20230717172055657

Then configure parameters on PicGo:

image-20230717172249921

repo is the warehouse just created, and the private token is written into the token just obtained, and other defaults are as above.

Three, typora configuration and verification

Open typora and find Preferences -> Image:

image-20230717172427132

First set the path of PicGo, that is, the path where PicGo was installed just now:

image-20230717172609090

Click to verify the image upload option, and the following message will appear indicating that the configuration is successful:

image-20230717172809193

You can also see the two test pictures uploaded on the gitee warehouse:

image-20230717172901766

Then set the preference setting to: upload pictures, and the configuration is completed.

image-20230717172936517

enjoy it!

Guess you like

Origin blog.csdn.net/aruewds/article/details/131771513