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:
- Download the plugin package:
/Plugins/Typecho/LHLImagesUpload.zip - Extract it into
/usr/pluginsunder your Typecho root directory
- TYPECHO_ROOT
- admin
- usr
- plugins
- LHLImagesUpload
- Plugin.php
- themes
- uploads
- ...
- In the Typecho admin panel, go to
Console -> Pluginsand enableLHLImagesUpload - Open the plugin settings, enter your token, then click
Load Storage Policies - 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.