https://github.com/halo-sigs/plugin-image-stream
接入主流的图片资源平台,支持从图片平台选择、转存图片
https://github.com/halo-sigs/plugin-image-stream
halo halo-plugin
Last synced: 23 days ago
JSON representation
接入主流的图片资源平台,支持从图片平台选择、转存图片
- Host: GitHub
- URL: https://github.com/halo-sigs/plugin-image-stream
- Owner: halo-sigs
- License: gpl-3.0
- Created: 2024-09-18T02:50:31.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-11-06T08:24:56.000Z (6 months ago)
- Last Synced: 2025-04-12T02:04:40.561Z (23 days ago)
- Topics: halo, halo-plugin
- Language: TypeScript
- Homepage: https://www.halo.run/store/apps/app-JxVVb
- Size: 11.6 MB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# plugin-image-stream
接入主流的图片资源平台,支持从图片平台选择、转存图片,目前支持:
- [Unsplash](https://unsplash.com/)
- [Pixabay](https://pixabay.com)
- [Pexels](https://www.pexels.com)
> 此插件基于 [plugin-unsplash](https://github.com/halo-sigs/plugin-unsplash),主要用于支持更多平台,详情见
## 特性
- 支持从 Unsplash、Pixabay、Pexels 选择或者转存图片到本地。
- 已内置各个平台的 API Key,开箱即用,也可以配置自己申请的 API Key。> 注意,Unsplash 平台因为审核原因,暂时没有通过生产环境的 API Key 申请,当前内置 API Key 为 Demo 模式,可能会因为请求数超出限制而无法访问,如果遇到这个问题,可以尝试申请自己的 Key。
## 使用
1. 在 [应用市场](https://www.halo.run/store/apps/app-JxVVb) 或 [Releases](https://github.com/halo-sigs/plugin-image-stream/releases) 中下载并安装此插件。
2. 启动之后,在附件选择弹窗中会添加 Image Stream 选项卡。## 声明
此插件所提供的内容来自:
- [Unsplash](https://unsplash.com/):[版权声明](https://unsplash.com/license)
- [Pixabay](https://pixabay.com):[版权声明](https://pixabay.com/zh/service/license-summary/)
- [Pexels](https://www.pexels.com):[版权声明](https://www.pexels.com/license/)## 开发环境
```bash
git clone https://github.com/halo-sigs/plugin-image-stream
``````bash
cd path/to/plugin-image-stream
``````bash
./gradlew build
```修改 Halo 配置文件:
```yaml
halo:
plugin:
runtime-mode: development
classes-directories:
- "build/classes"
- "build/resources"
lib-directories:
- "libs"
fixedPluginPath:
- "/path/to/plugin-image-stream"
```