ImageKit
这是 ImageKit.io 存储服务的后端。
关于 ImageKit
ImageKit.io 提供实时的图像和视频优化、转换以及 CDN 分发服务。超过 1000 家企业和 70000 名开发者信赖 ImageKit 来处理他们在网络上的图像和视频。
账户与定价
要使用此后端,你需要在 ImageKit 上 创建一个账户。可以从具有慷慨使用限制的免费计划开始。随着需求的增长,升级到最适合你需求的计划。查看 定价详情。
配置
以下是一个进行 ImageKit 配置的示例。
首先,创建一个 ImageKit.io 账户并选择一个计划。
你需要登录并从开发者部分获取账户的 publicKey
和 privateKey
。
Now run
rclone config
这将引导您完成交互式设置过程:
No remotes found, make a new one?
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n
Enter the name for the new remote.
name> imagekit-media-library
Option Storage.
Type of storage to configure.
Choose a number from below, or type in your own value.
[snip]
XX / ImageKit.io
\ (imagekit)
[snip]
Storage> imagekit
Option endpoint.
You can find your ImageKit.io URL endpoint in your [dashboard](https://imagekit.io/dashboard/developer/api-keys)
Enter a value.
endpoint> https://ik.imagekit.io/imagekit_id
Option public_key.
You can find your ImageKit.io public key in your [dashboard](https://imagekit.io/dashboard/developer/api-keys)
Enter a value.
public_key> public_****************************
Option private_key.
You can find your ImageKit.io private key in your [dashboard](https://imagekit.io/dashboard/developer/api-keys)
Enter a value.
private_key> private_****************************
Edit advanced config?
y) Yes
n) No (default)
y/n> n
Configuration complete.
Options:
- type: imagekit
- endpoint: https://ik.imagekit.io/imagekit_id
- public_key: public_****************************
- private_key: private_****************************
Keep this "imagekit-media-library" remote?
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d> y
List directories in the top level of your Media Library
rclone lsd imagekit-media-library:
Make a new directory.
rclone mkdir imagekit-media-library:directory
List the contents of a directory.
rclone ls imagekit-media-library:directory
修改时间和哈希值
ImageKit 目前不支持修改时间或哈希值。
校验和
不支持任何校验和。
标准选项
以下是 ImageKit(ImageKit.io)特有的标准选项。
–imagekit-endpoint
你可以在 仪表盘 中找到你的 ImageKit.io URL 端点。
属性:
- 配置项:endpoint
- 环境变量:RCLONE_IMAGEKIT_ENDPOINT
- 类型:字符串
- 是否必需:是
–imagekit-public-key
你可以在 仪表盘 中找到你的 ImageKit.io 公钥。
属性:
- 配置项:public_key
- 环境变量:RCLONE_IMAGEKIT_PUBLIC_KEY
- 类型:字符串
- 是否必需:是
–imagekit-private-key
你可以在 仪表盘 中找到你的 ImageKit.io 私钥。
属性:
- 配置项:private_key
- 环境变量:RCLONE_IMAGEKIT_PRIVATE_KEY
- 类型:字符串
- 是否必需:是
高级选项
以下是 ImageKit(ImageKit.io)特有的高级选项。
–imagekit-only-signed
如果你在仪表盘设置中配置了 Restrict unsigned image URLs
(限制无签名图像 URL),请将此选项设置为 true。
属性:
- 配置项:only_signed
- 环境变量:RCLONE_IMAGEKIT_ONLY_SIGNED
- 类型:布尔值
- 默认值:false
–imagekit-versions
在目录列表中包含旧版本。
属性:
- 配置项:versions
- 环境变量:RCLONE_IMAGEKIT_VERSIONS
- 类型:布尔值
- 默认值:false
–imagekit-upload-tags
要添加到上传文件的标签,例如 “tag1,tag2”。
属性:
- 配置项:upload_tags
- 环境变量:RCLONE_IMAGEKIT_UPLOAD_TAGS
- 类型:字符串
- 是否必需:否
–imagekit-encoding
后端的编码方式。
更多信息请参阅 概述中的编码部分。
属性:
- 配置项:encoding
- 环境变量:RCLONE_IMAGEKIT_ENCODING
- 类型:编码方式
- 默认值:斜杠、尖括号、双引号、美元符号、问号、井号、百分号、反斜杠、删除符、控制字符、无效 UTF-8、点号、方括号
–imagekit-description
远程存储的描述。
属性:
- 配置项:description
- 环境变量:RCLONE_IMAGEKIT_DESCRIPTION
- 类型:字符串
- 是否必需:否
元数据
底层远程存储支持的任何元数据都会被读取和写入。
以下是 ImageKit 后端可能的系统元数据项。
名称 | 说明 | 类型 | 示例 | 只读 |
---|---|---|---|---|
aws-tags | 由 AWS Rekognition 为图像生成的 AI 标签 | 字符串 | tag1,tag2 | 是 |
btime | 从 Last-Modified 头部读取的文件创建时间 | RFC 3339 | 2006-01-02T15:04:05.999999999Z07:00 | 是 |
custom-coordinates | 文件的自定义坐标 | 字符串 | 0,0,100,100 | 是 |
file-type | 文件类型 | 字符串 | image | 是 |
google-tags | 由 Google Cloud Vision 为图像生成的 AI 标签 | 字符串 | tag1,tag2 | 是 |
has-alpha | 图像是否有 alpha 通道 | 布尔值 | 是 | |
height | 图像或视频的高度(像素) | 整数 | 是 | |
is-private-file | 文件是否为私有文件 | 布尔值 | 是 | |
size | 对象的大小(字节) | 64 位整数 | 是 | |
tags | 与文件关联的标签 | 字符串 | tag1,tag2 | 是 |
width | 图像或视频的宽度(像素) | 整数 | 是 |
更多信息请参阅 元数据 文档。