Skip to content

Commit 68087a4

Browse files
committed
readme updated
1 parent 4aeb9f0 commit 68087a4

File tree

2 files changed

+15
-16
lines changed

2 files changed

+15
-16
lines changed

README.md

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ yarn add imagekitio-vue
2323

2424
## Usage
2525

26-
Register it as a plugin to globally install all components.
27-
2826
### Initialization
27+
Register it as a plugin to globally install all components.
2928

3029
```js
3130
import ImageKit from "imagekitio-vue"
@@ -45,6 +44,19 @@ Vue.use(ImageKit, {
4544

4645
_Note: Do not include your Private Key in any client-side code, including this SDK or its initialization. If you pass the `privateKey` parameter while initializing this SDK, it throws an error_
4746

47+
Or, import components individually.
48+
```
49+
import { IKImage, IKContext, IKUpload } from "imagekitio-vue"
50+
51+
export default {
52+
components: {
53+
IKImage,
54+
IKContext,
55+
IKUpload
56+
}
57+
}
58+
```
59+
4860
### Quick examples
4961
```js
5062
import ImageKit from "imagekitio-vue"
@@ -118,19 +130,6 @@ Vue.use(ImageKit, {
118130
/>
119131
```
120132

121-
Or, import components individually.
122-
```
123-
import { IKImage, IKContext, IKUpload } from "imagekitio-vue"
124-
125-
export default {
126-
components: {
127-
IKImage,
128-
IKContext,
129-
IKUpload
130-
}
131-
}
132-
```
133-
134133
### Demo application
135134
The fastest way to get started is by running the demo application in [samples/sample-app](/samples/sample-app) folder as the [README.md](/samples/sample-app/README.md).
136135

src/components/IKImage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export default {
140140
141141
result.src = IkClient.url(options);
142142
143-
if(this.lqip && this.lqip.active && (this.lqip.quality || this.lqip.threshold)) {
143+
if(this.lqip && this.lqip.active) {
144144
var quality = parseInt((this.lqip.quality || this.lqip.threshold),10) || 20;
145145
var blur = parseInt((this.lqip.blur || this.lqip.blur),10) || 6;
146146
var transformation = options.transformation || [];

0 commit comments

Comments
 (0)