接入主流的图片资源平台,支持从图片平台选择、转存图片,目前支持:
此插件基于 plugin-unsplash,主要用于支持更多平台,详情见 halo-sigs/plugin-unsplash#15
- 支持从 Unsplash、Pixabay、Pexels 选择或者转存图片到本地。
- 已内置各个平台的 API Key,开箱即用,也可以配置自己申请的 API Key。
插件已内置各平台的 API Key,开箱即用。如果内置 Key 失效或需要使用自己的 Key,可按以下步骤配置:
- 进入 Halo 后台 -> 插件 -> Image Stream -> 设置
- 在对应平台的 Access Key / API Key 栏点击 Secret 输入框,创建一个新的 Secret
- 填写 Key 和 Value:
| 平台 | Key | Value | 申请地址 |
|---|---|---|---|
| Unsplash | unsplashApiKey |
你的 Access Key | https://unsplash.com/developers |
| Pexels | pexelsApiKey |
你的 API Key | https://www.pexels.com/api |
| Pixabay | pixabayApiKey |
你的 API Key | https://pixabay.com/zh/service/about/api |
- 保存设置即可生效
此插件所提供的内容来自:
git clone https://github.com/halo-sigs/plugin-image-streamcd path/to/plugin-image-stream./gradlew haloServer