Quickly improve writing productivity—use PicGo+Github to build a free picture bed and combine it with Typora

Brief introduction to PicGo

PicGo: A tool for quickly uploading images and getting image URL links

PicGo itself supports the following picture platforms:

  • 七牛图床v1.0
  • 腾讯云 COS v4\v5 版本 v1.1 & v1.5.0
  • 又拍云v1.2.0
  • GitHubv1.5.0
  • SM.MS V2v2.3.0-beta.0
  • 阿里云 OSSv1.6.0
  • Imgurv1.6.0

Special feature

  • Support drag and drop image upload
  • Supports shortcut keys to upload the first picture in the clipboard
  • Windows and macOS support right-clicking image files to upload through the menu (v2.1.0+)
  • Automatically copy the link to the clipboard after uploading the image
  • Support custom link format copied to clipboard
  • Supports modifying shortcut keys, default fast upload shortcut key: command+shift+p(macOS) | control+shift+p(Windows\Linux)
  • Support plug-in system, existing plug-ins support third-party image beds such as Gitee and Qingyun
    • More third-party plug-ins and applications using the underlying PicGo can be found at Awesome-PicGo . Contributions welcome!
  • Support calling PicGo upload by sending HTTP request (v2.2.0+)

Judging from my personal experience, it can greatly improve writing productivity and improve writing efficiency. The author strongly recommends making a free image bed yourself.

Download PicGo

Enter the official website: https://github.com/Molunerfinn/PicGo/releases/tag/v2.3.1 . I downloaded the latest stable version. Of course, you can also find betaa version on the official website to download depending on your personal needs.

Open the downloaded exefile and follow the steps below.

The installation path is optional.

Get Token

Create a new Github repository. The warehouse must be made public.

Click on your avatar in the upper right corner.

Click on the lower right settings.

Click again on the lower left Developer settings.

Follow the instructions.

Edit the newly generated Token information.

Last click Generate token.

The Token generated by copying must be saved and can be placed in the memo. This thing can only be viewed once.

Configure PicGo

Open the PicGo software.

Click on the image bed settings, then click on Github.

image-20230816221539920

You can create a new folder on Github as follows.

Be sure to enter it 文件夹名/文件名, because Github does not allow empty folders to exist, so you must do this, for example img/README.md.

Then click on the workspace and select Github as the upload method.

Drag the image to the upload area to check whether the configuration is successful.

You can see that the photo album and clipboard have uploaded image paths, and PicGo is configured successfully.

Combined with Typora

Click Preferences in Typora. Follow the instructions below.

image-20230816184801636

The following content indicates that PicGo is successfully configured on Typora.

image-20230816184833239

We just copy a picture from the clipboard and paste it into Typora, and we can find that the picture will be automatically uploaded to Github.

image-20230816185415978

And the path will automatically change to the domain name you set and the path of the image warehouse in Github.

image-20230816185642659

I have to say that this has greatly improved my writing speed and is very convenient and fast.

ps: Originally, the path of a certain image in github should look like the following:https://github.com/uestc-wxy/ImgPicGo/blob/master/img/image-20230816184801636.png

However, accessing images in this way is extremely slow, so I used jsdelivr as CDN acceleration. The new URL looks like https://cdn.jsdelivr.net/gh/uestc-wxy/ImgPicGo/img/image-20230816184801636.png. ghRepresents GitHub, followed by the Github user name and warehouse name, and then the path of the image in Github.

Summarize

Personally, I think PicGo plus Typora is simply a magical tool for writing, which can greatly improve writing efficiency. Simply put, just take a screenshot and paste a picture and it will be unique. I call it nice.

Guess you like

Origin blog.csdn.net/m0_63230155/article/details/132330784