An open API service indexing awesome lists of open source software.

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

接入主流的图片资源平台,支持从图片平台选择、转存图片

Awesome Lists containing this project

README

        

# plugin-image-stream

接入主流的图片资源平台,支持从图片平台选择、转存图片,目前支持:

- [Unsplash](https://unsplash.com/)
- [Pixabay](https://pixabay.com)
- [Pexels](https://www.pexels.com)

![Screenshot](./screenshots/plugin-image-stream.png)

> 此插件基于 [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"
```