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
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,11 +55,11 @@ It takes the following arguments:
55
55
-`baseUrl` (`string`) - (required) the base URL of your imgproxy instance
56
56
-`url` (`Object | string`) - (required) a string with url value or an object that contains the value and resultType properties. You can specify only url if you agree with default `url.resultType` = "base64" or you have to specify `url.value` and `url.resultType`.
57
57
-`value` (`string`) - (required) the plain text URL of the image.
58
-
-`resultType` (`"base64" | "encoded" | "plain"`) - (optional) the type of the URL. Deafult value is `"base64"`.
58
+
-`resultType` (`"base64" | "encrypted" | "plain"`) - (optional) the type of the URL. Deafult value is `"base64"`.
59
59
Can be one of the following:
60
60
-`"base64"` - a base64 encoded URL. Default value.
61
-
-`"encoded"` - (**PRO feature**) an AES-CBC encrypted URL.
62
-
-`"plain"` - a plain text URL. We strongly recommend using `base64` or `encoded` type.
61
+
-`"encrypted"` - (**PRO feature**) an AES-CBC encrypted URL.
62
+
-`"plain"` - a plain text URL. We strongly recommend using `base64` or `encrypted` type.
63
63
-`options` (`Object | undefined`) - (optional) an object that contains the resizing options. You can see all options in [imgproxy docs](https://docs.imgproxy.net/generating_the_url?id=processing-options) or in [Options types in imgproxy-js-core library](https://github.com/imgproxy/imgproxy-js-core/blob/main/src/types/index.ts).
64
64
-`salt` (`string | undefined`) - (optional) the salt used to encode the URL. It must be a hex-encoded 16-byte string. This option overrides IMGPROXY_SALT environment variable from process.env for this call.
65
65
-`key` (`string | undefined`) - (optional) the key used to encode the URL. It must be a hex-encoded 16-byte string. This option overrides IMGPROXY_KEY environment variable from process.env for this call.
@@ -74,11 +74,11 @@ It takes the following arguments:
74
74
-`baseUrl` (`string`) - (required) the base URL of your imgproxy instance
75
75
-`url` (`Object | string`) - (required) a string with url value or an object that contains the value and resultType properties. You can specify only url if you agree with default `url.resultType` = "base64" or you will have to specify `url.value` and `url.resultType`.
76
76
-`value` (`string`) - (required) the plain text URL of the image.
77
-
-`resultType` (`"base64" | "encoded" | "plain"`) - (optional) the type of the URL. Deafult value is `"base64"`.
77
+
-`resultType` (`"base64" | "encrypted" | "plain"`) - (optional) the type of the URL. Deafult value is `"base64"`.
78
78
Can be one of the following:
79
79
-`"base64"` - a base64 encoded URL. Default value.
80
-
-`"encoded"` - (**PRO feature**) an AES-CBC encrypted URL.
81
-
-`"plain"` - a plain text URL. We strongly recommend using `base64` or `encoded` type.
80
+
-`"encrypted"` - (**PRO feature**) an AES-CBC encrypted URL.
81
+
-`"plain"` - a plain text URL. We strongly recommend using `base64` or `encrypted` type.
82
82
-`options` (`Object | undefined`) - (optional) an object that contains the resizing options. You can see all options in [imgproxy docs](https://docs.imgproxy.net/getting_the_image_info?id=info-options) or in [OptionsImageInfo types in imgproxy-js-core library](https://github.com/imgproxy/imgproxy-js-core/blob/main/src/types/index.ts).
83
83
-`salt` (`string | undefined`) - (optional) the salt used to encode the URL. It must be a hex-encoded 16-byte string. This option overrides IMGPROXY_SALT from process.env for one request.
84
84
-`key` (`string | undefined`) - (optional) the key used to encode the URL. It must be a hex-encoded 16-byte string. This option overrides IMGPROXY_KEY from process.env for one request.
Copy file name to clipboardExpand all lines: src/methods/generateImageInfoUrl.ts
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,10 @@ import type { IGenerateImageInfoUrl } from "../types";
9
9
/**
10
10
* Generate image info url. **PRO feature**
11
11
* @param {string} baseUrl - Base url
12
-
* @param {Object} url - url and type
12
+
* @param {Object | string} url - you can specify only url if you agree with default url.resultType = "base64" or you have to specify url.value and url.resultType
13
13
* @param {string} url.value - url value
14
-
* @param {string} url.type - url type (plain, base64 or encoded)
14
+
* @param {string} url.resultType - (optional) here you specify in what type of image URL is required in the generated.
15
+
* Imgproxy request URL: "plain", "base64" or "encrypted" (encrypted is PRO feature). We strongly recommend to use "base64" or "encrypted" kind of url. default: `"base64"`.
15
16
* @param {Object} [options] - (optional) options. You can see all options in [imgproxy docs](https://docs.imgproxy.net/getting_the_image_info?id=info-options)
16
17
* or in OptionsImageInfo types in imgproxy-js-core.d.ts
17
18
* @param {string} [salt] - (optional) hex-encoded salt. This option overrides IMGPROXY_SALT from process.env for this request
@@ -26,7 +27,7 @@ import type { IGenerateImageInfoUrl } from "../types";
Copy file name to clipboardExpand all lines: src/methods/generateImageUrl.ts
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -6,10 +6,10 @@ import type { IGenerateImageUrl } from "../types";
6
6
/**
7
7
* Generate image url
8
8
* @param {string} baseUrl - Base url
9
-
* @param {Object | string} url - you should specify only url if you agree with default url.resultType = "base64" or you should specify url.value and url.resultType
9
+
* @param {Object | string} url - you can specify only url if you agree with default url.resultType = "base64" or you have to specify url.value and url.resultType
10
10
* @param {string} url.value - url value
11
-
* @param {string} url.resultType - (optional) here you specify in what type of image URL is required in the generated
12
-
* Imgproxy request URL: "plain", "base64" or "encoded" (encoded is PRO feature). We strongly recommend to use "base64" or "encoded" kind of url. default: "base64"
11
+
* @param {string} url.resultType - (optional) here you specify in what type of image URL is required in the generated.
12
+
* Imgproxy request URL: "plain", "base64" or "encrypted" (encrypted is PRO feature). We strongly recommend to use "base64" or "encrypted" kind of url. default: `"base64"`
13
13
* @param {Object} [options] - (optional) options. You can see all options in [imgproxy docs](https://docs.imgproxy.net/generating_the_url?id=processing-options)
14
14
* or in Options types in imgproxy-js-core.d.ts
15
15
* @param {string} [salt] - (optional) hex-encoded salt. This option overrides IMGPROXY_SALT from process.env for this request
0 commit comments