[White prostitution] PicGo + Gitee realizes markdown image bed

1 Introduction

I believe that most of the blogs or notes are in the markdownformat, and many of them use Typorathis software. However, we all know that when we write a blog, we always need to insert pictures . If the pictures are stored locally, upload them to the blog website. It won’t be displayed if you go. Even if you copy and paste a picture and a picture, and you want to port it to other blog sites, the picture will become invalid, and we need a picture bed. The picture bed software introduced here is PicGothat we want to implement PicGo + Code cloud + Typora to realize markdown image bed

2. Installation

  • PicGo
  • picgo-plugin-gitee-uploader plugin

First open picgo official website , download the installation package, download the .exesuffix file under windows

image-20200611215317256

It may be slower, so you can use the entire address to download: PicGo-Setup-2.3.0-beta.0.exe

After installation, open the interface as follows:

image-20200611215519706

Select the bottom plug-in settings, search for gitee , and then click on the right to gitee-uploader 1.1.2start installation

image-20200611215628841

3. Gitee image bed library

We create a warehouse directly on Gitee, as shown below

4. Configure PicGo

After installing the **gitee-uploader 1.1.2 ** plugin, we start to configure the plugin,

  • repo: warehouse address, such as my own warehouse xzlmk/markdownimage

image-20200611220019815

  • branch: branch, write master here

  • token: fill in the private token of Code Cloud

  • path: path, usually write img

  • customPath: Submit message, neither this item nor the next customURL need to be filled in. After submitting to the code cloud, a submission message will be displayed, and the default submission of the plug-in isUpload 图片名 by picGo - 时间

How to get this token: 1. Click on the avatar and enter the settings 2. Find the private token on the left 3. If not, create one

Insert picture description here

Note: This token will only be displayed in plain text once. It is recommended to generate the token again when configuring the plug-in, copy it directly, and regenerate it if you lose it.

Now save the configuration you just made, and then set it as the default image bed, and you're done.

5. Configure Typora

Select File->Preferences and set it as the following picture:

image-20200611214635403

6. Results

image-20200611220442688

You can see that the pictures in my document are uploaded to Gitee

If this article is helpful to you, you can follow a wave of bloggers' official accounts~

Guess you like

Origin blog.csdn.net/qq_41941875/article/details/106698088