Setting Up Typora + PicGo + Alibaba Cloud OSS Image Hosting


Introduction:

After considering several factors, I chose to set up image hosting using Typora + PicGo + Alibaba Cloud OSS. This solution has several advantages, such as:

  1. High data security
  2. Seamless integration with Typora, making it easy to insert and upload images to the image host
  3. Extremely fast access speeds

Purchasing OSS Service

  • Go to the Alibaba Cloud website, register an account, complete real-name verification, and log in. Then, find the Object Storage Service (OSS).

image-20220830145026842

  • Select the package you want to purchase. For personal blog use, 40GB should be more than enough.

    image-20220830145323628

    • After purchasing, go to the console → Object Storage OSS → Bucket List

    image-20220830145618050

    • Create a Bucket

    img

Configuring PicGo

PicGo is an open-source, free, cross-platform tool for image hosting. It supports most mainstream image hosts, and its integration with Typora enhances its functionality.

  • First, download PicGo for your operating system.
  • In the PicGo Settings, you can hide image hosts you don’t need. In the Image Hosting Settings, configure your image host. This guide uses Alibaba Cloud OSS as an example. Below is an overview of the settings ↓, and I will explain how to configure them step by step.

image-20220830151151377

① KeyId, KeySecret:

Go back to the Alibaba Cloud homepage, click on your avatar in the top-right corner, open AccessKey ManagementCreate AccessKey → Copy the AccessKey ID/AccessKey Secret for later use.

image-20220830151453935

② Bucket Name:

This is the name of the bucket you created.

image-20220830151818226

③ Storage Region:

This is the region of your newly created bucket.

image-20220830151900458

④ Storage Path (Optional):

This can be left blank.

Configuring Typora

To directly upload images to OSS when pasting them into an article, we need to configure Typora’s image upload function to point to PicGo.app.

Follow the diagram below to configure it. You can verify if the image upload option is correctly configured by using the Verify Image Upload Options.

image-20220830152542088