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.
Table of contents
1. Download and install PicGo
PicGoDownload
Visit the official website of PicGo and find a stable version: 2.3.1
Download 64-bit exe:
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 .
After opening, the interface as shown in the figure:
PicGo configuration
Click the plugin settings, search for gitee, and install the plugin in the red box:gitee-uploader 1.1.2
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 -v
and npm -v
check whether the installation is successful:
Two, Gitee configuration
Click the image bed settings, pull down to find gitee, and the following interface is displayed:
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
The warehouse name is random, such as gitee_img; select a single branch.
Then initialize the readme operation and set the warehouse as open source . Because it can only be specified as private when created.
Then generate a private token:
Find the private token:
Click Generate New Token:
Save the private token:
Then configure parameters on PicGo:
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:
First set the path of PicGo, that is, the path where PicGo was installed just now:
Click to verify the image upload option, and the following message will appear indicating that the configuration is successful:
You can also see the two test pictures uploaded on the gitee warehouse:
Then set the preference setting to: upload pictures, and the configuration is completed.
enjoy it!