How to Set Up and Use the LHL's Images Plugin in Typecho

Published:

LHL's Images is a plugin built specifically for Typecho, designed to make image uploads easier while writing posts.

Download

The plugin is available through LHL's Cloud under the Typecho plugin section.

Installation

Before installing the plugin, first obtain an API token from LHL's Images. The token must include both basic permissions and permission to upload images.

Then install it as follows:

  1. Download the plugin package: /Plugins/Typecho/LHLImagesUpload.zip
  2. Extract it into /usr/plugins under your Typecho root directory
- TYPECHO_ROOT
  - admin
  - usr
    - plugins
      - LHLImagesUpload
        - Plugin.php
    - themes
    - uploads
  - ...
  1. In the Typecho admin panel, go to Console -> Plugins and enable LHLImagesUpload
  2. Open the plugin settings, enter your token, then click Load Storage Policies
  3. After that, choose the default Storage Policy

If the only available option is Github JSdelivr, the token is usually either expired or missing the correct permissions.

Using the Plugin

When writing a post in Typecho, you can either paste an image directly or upload an image from the Attachments panel on the right. The plugin will automatically return the image URL.

One thing to keep in mind: deleting the image from the attachments list after upload does not remove it from LHL's Images.