Reprinted from: www.jianshu.com/p/b69950a49…

Finally decided to use PicGo + Domestic Github –Yards cloudTo implement markdown graph bed

That’s it. Let’s get down to business


1. Install

  • PicGo
  • Picgo – plugin – gitee – uploader plug-in

Start by openingPicgo websiteTo download the installation package

The speed is quite fast, it doesn’t matter, PicGo2.1.2 installation package link below for yourself

Open the main screen after installation

Select the bottom plugin Settings and searchgitee

Click on giee-Uploader 1.1.2 on the right to start installation

Note that node.js must be installed to install the plugin. If not, install it yourself and restart it.

This place has two plug-ins, I tried again, both of them can be used, we see the mood to choose, first say the right of the gitee-Uploader 1.1.2, can not use the students choose the left side of that, I will talk about a configuration


2. Establish gITEE (code Cloud) map bed library

The method of registration code cloud is very simple, the website guide is Chinese, not to say more, we directly establish their own map bed library.

Click the + sign in the upper right corner to create a new warehouse

The main points of the new warehouse are as follows:

  1. Enter a warehouse name
  2. Next, make the repository public
  3. Check to initialize the repository with Readme file

Check this option so that the code cloud will automatically create the master branch for your repository. This is very important!! I struggled with this for a long time because picgo seems to automatically generate master branches for you using Github, whereas the Gitee plugin in PicGo doesn’t automatically generate branches for you.

Click Create to proceed to the next step


3. The configuration PicGo

With the Gadee-Uploader 1.1.2 plug-in installed, we started to configure the plug-in

The key points of configuring plug-ins are as follows:

  • Repo: username/repository name, such as my own repository leonG7/blogImage, can also copy the repository URL directly

  • -Leonard: That’s a branch. I’ll say master

  • Token: A private token entered into the code cloud

  • Path: indicates the path, usually written in img

  • CustomPath: Submit message. Leave this and the next item, customURL, blank. Upload image name by picGo – time. Upload image name by picGo – time

How to obtain this token, the following login to their code cloud

  1. Click on your avatar to go to Settings

  1. Find the private token in the security Settings on the right

  1. Click generate new token, tick projects, leave everything else unchecked, and submit

    Here you need to verify the password, the password will come out a string of numbers, this string of numbers is your token, copy this string of numbers into the previous configuration inside.

    Note: this token will only be displayed in clear text once. It is recommended to generate the token during the configuration of the plug-in, copy the token directly into it, and generate another one if lost.

Now save your configuration and set it as the default map bed. You’re done.

There is also a plugin called Gitee 1.2.2-beta, which has similar functions. If the previous one works, there is no need to use this plugin. The configuration is slightly different.

  • Url: Graph bed website, here write code cloud home page gitee.com

  • Owner: If you don’t know your account name, go to your repository, it’s in your browser URL

  • Repo: Warehouse name, just write the warehouse name, like my own warehouse blogImage

  • Path: Write the path, usually img, without “/”

  • Token: The personal token you obtained just now is universal between the two plugins. If you use the other one, it will automatically read part of the configuration of the other plugin. No need to re-apply

  • Message: Do not fill in


4. Test

Picgo also supports clipboard upload, screenshots tool recommended win10 _Snipaste_ magical ware! Give it a try,

Super fast! Github is much faster than github, 0.1 seconds upload, and imported into your Markdown editor is also a second to identify your image content, and if github map upload too slow not to say may also appear below such recognition problem!

Github link may not be recognized due to network speed

After uploading, copy the link by default, paste it directly into your Markdown editor, and have fun writing!

Typora + PicGo + Snipaste: Typora writes a document, Snipaste takes a screenshot, and PicGo uploads a picture and returns a link.

How to use Typora to automatically upload picgo map bed