Skip to content
On this page

ImageKit

This is a backend for the ImageKit.io storage service.

About ImageKit

ImageKit.io provides real-time image and video optimizations, transformations, and CDN delivery. Over 1,000 businesses and 70,000 developers trust ImageKit with their images and videos on the web.

Accounts & Pricing

To use this backend, you need to create an account on ImageKit. Start with a free plan with generous usage limits. Then, as your requirements grow, upgrade to a plan that best fits your needs. See the pricing details.

Configuration

Here is an example of making an imagekit configuration.

Firstly create a ImageKit.io account and choose a plan.

You will need to log in and get the publicKey and privateKey for your account from the developer section.

Now run

rclone config

This will guide you through an interactive setup process:

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

Modified time and hashes

ImageKit does not support modification times or hashes yet.

Checksums

No checksums are supported.

start" - DO NOT EDIT - instead edit fs.RegInfo in backend/imagekit/imagekit.go then run

Standard options

Here are the Standard options specific to imagekit (ImageKit.io).

--imagekit-endpoint

You can find your ImageKit.io URL endpoint in your dashboard

Properties:

  • Config: endpoint
  • Env Var: RCLONE_IMAGEKIT_ENDPOINT
  • Type: string
  • Required: true

--imagekit-public-key

You can find your ImageKit.io public key in your dashboard

Properties:

  • Config: public_key
  • Env Var: RCLONE_IMAGEKIT_PUBLIC_KEY
  • Type: string
  • Required: true

--imagekit-private-key

You can find your ImageKit.io private key in your dashboard

Properties:

  • Config: private_key
  • Env Var: RCLONE_IMAGEKIT_PRIVATE_KEY
  • Type: string
  • Required: true

Advanced options

Here are the Advanced options specific to imagekit (ImageKit.io).

--imagekit-only-signed

If you have configured Restrict unsigned image URLs in your dashboard settings, set this to true.

Properties:

  • Config: only_signed
  • Env Var: RCLONE_IMAGEKIT_ONLY_SIGNED
  • Type: bool
  • Default: false

--imagekit-versions

Include old versions in directory listings.

Properties:

  • Config: versions
  • Env Var: RCLONE_IMAGEKIT_VERSIONS
  • Type: bool
  • Default: false

--imagekit-upload-tags

Tags to add to the uploaded files, e.g. "tag1,tag2".

Properties:

  • Config: upload_tags
  • Env Var: RCLONE_IMAGEKIT_UPLOAD_TAGS
  • Type: string
  • Required: false

--imagekit-encoding

The encoding for the backend.

See the encoding section in the overview for more info.

Properties:

  • Config: encoding
  • Env Var: RCLONE_IMAGEKIT_ENCODING
  • Type: Encoding
  • Default: Slash,LtGt,DoubleQuote,Dollar,Question,Hash,Percent,BackSlash,Del,Ctl,InvalidUtf8,Dot,SquareBracket

--imagekit-description

Description of the remote.

Properties:

  • Config: description
  • Env Var: RCLONE_IMAGEKIT_DESCRIPTION
  • Type: string
  • Required: false

Metadata

Any metadata supported by the underlying remote is read and written.

Here are the possible system metadata items for the imagekit backend.

NameHelpTypeExampleRead Only
aws-tagsAI generated tags by AWS Rekognition associated with the imagestringtag1,tag2Y
btimeTime of file birth (creation) read from Last-Modified headerRFC 33392006-01-02T15:04:05.999999999Z07:00Y
custom-coordinatesCustom coordinates of the filestring0,0,100,100Y
file-typeType of the filestringimageY
google-tagsAI generated tags by Google Cloud Vision associated with the imagestringtag1,tag2Y
has-alphaWhether the image has alpha channel or notboolY
heightHeight of the image or video in pixelsintY
is-private-fileWhether the file is private or notboolY
sizeSize of the object in bytesint64Y
tagsTags associated with the filestringtag1,tag2Y
widthWidth of the image or video in pixelsintY

See the metadata docs for more info.

ImageKit has loaded