• Small knowledge, big challenge! This article is participating in the creation activity of “Essential Tips for Programmers”.

In the case of the 7 cow cloud map bed, we could have a place to store images from Markdown, and it was fast and didn’t take up Pages space, but generating images for manual upload was a real pain in the butt of name management. In order to make graph bed management no longer anti-human, PicGo came into being. This paper introduces the method of PicGo combined with Qiniuyun to manage Hexo images.

The preparatory work

  • The Hexo blog is set up and mounted on the server
  • Apply for qiniu Cloud and set up the map bed, refer to hexO-9 – Add Qiniu Cloud Map bed

Download tool

  • Download: github.com/Molunerfinn…
  • The current highest version is 2.2.2
  • Windows download PicGo – Setup – 2.2.2. Exe
  • Max download PicGo 2.2.2 – MAC. Zip
  • Linux download PicGo – 2.2.2. AppImage

AppImage

What is AppImage?

Source: blog.csdn.net/aboutmn/art…

  • AppImage uses a common software format, and by packaging the entire software as AppImage, all functionality is contained in one package. And it is available on almost all Linux distributions.

  • Typically, installing Linux software will generate multiple files in different directories and require root permission to modify the system.

  • AppImage doesn’t need to do this. In fact, AppImage does not need to be installed. AppImage is a compressed image file that contains all dependencies and library files needed to run it.

  • You can execute AppImage files directly without installing them. When you delete the AppImage file, the entire app is also deleted. Think of it as one of those installation-free exe files in Windows.

  • Advantages:

    • It runs on a variety of platforms
    • No installation is required
    • No root permission is required and no system files need to be modified
    • Portability: Can be performed at location
    • App read-only
    • Easy to uninstall, just need to delete the AppImage file
  • Use the AppImage file

    • Download the AppImage file
    • Grant executable permission
    • Double-click or execute from the command line

Install dependencies

Xclip is used to upload clipboard images in an application

 sudo apt install xclip 
Copy the code

Figure bed set

  • Run the program, look carefully, will find the desktop more than a blue square, do not panic, this is PicGo

  • Right click on the box -> Open details -> Bed Settings -> Seven cow bed

  • AccessKey is in the qiuniuyun console -> Avatar -> personal center

  • Keep the SecretKey well in the key management, which is not suitable for external transmission

  • The storage space name is qiuniuyun space name
  • Access to the website for the seven niuyun chain domain name, we have been configured in the seven niuyun space accelerated domain name
  • Fill in the corresponding code for the storage area

  • The remaining two items can be filled in according to personal situation, but suffixes are not recommended, after all, the file suffixes are changed according to the picture
  • Ok -> Set as default map bed. The map bed configuration is successful

Other Settings

Because most of our application scenarios are to add image links to Markdown, we need PicGo to directly edit image links to the image format supported by Markdown, but the built-in Markdown format does not contain the protocol, without https://, so we set it by ourselves.

  • PicGo Settings -> Custom link Settings

  • Set format to! [](https://$url)

  • You are advised to rename the image with a timestamp to ensure that the image will not repeat

  • Go back to the upload area -> Change the link format to Custom and the link format will be copied to the clipboard each time the image is uploaded

  • PicGo Settings -> Modify shortcut keys, upload Settings to their own shortcut keys

Painlessly add picture flow

  • From then on, the process of adding pictures is as follows:

    • Ctrl+Alt+A Screenshot -> Frame -> Number -> Mosaic -> Write -> Enter Add the image to the clipboard Flameshot – with shortcut keys free screenshot, screenshot graffiti, screenshot add text and other functions)
    • Ctrl+Shift+Q Upload image
    • Ctrl+V paste the link

Comfortable…