You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* A utility function to generate asset URL. It applies the specified transformations and other parameters to the URL.
33
+
* An instance method to generate URL for the given transformation parameters. This method is useful when you want to generate URL using the instance of the SDK without passing common parameters like `urlEndpoint` and `transformationPosition` every time.
* A static method to generate URL for the given transformation parameters. This method is useful when you want to generate URL without creating an instance of the SDK.
* An instance method to upload file to ImageKit.io. This method is useful when you want to upload file using the instance of the SDK without passing common parameters like `urlEndpoint` and `publicKey` every time.
* Get your urlEndpoint from the [ImageKit dashboard](https://imagekit.io/dashboard/url-endpoints).
6
+
*/
7
+
urlEndpoint?: string;
8
+
9
+
/**
10
+
* The public API key of your ImageKit account. You can find it in the [ImageKit dashboard](https://imagekit.io/dashboard/developer/api-keys).
11
+
*/
5
12
publicKey?: string;
13
+
14
+
/**
15
+
* By default, the transformation string is added as a query parameter in the URL e.g. `?tr=w-100,h-100`. If you want to add the transformation string in the path of the URL, set this to `path`.
* An array of objects specifying the transformations to be applied in the URL.
7
-
* The transformation name and the value should be specified as a key-value pair in each object.
5
+
* Accepts relative or absolute path of the resource. If relative path is provided, it is appended to the `urlEndpoint`. If absolute path is provided, `urlEndpoint` is ignored.
6
+
*/
7
+
src: string;
8
+
9
+
/**
10
+
* An array of objects specifying the transformations to be applied in the URL. If more than one transformation is specified, they are applied in the order they are specified as chained transformations.
0 commit comments