compress.js
Advanced tools
Comparing version 1.0.9 to 1.1.0
{ | ||
"name": "compress.js", | ||
"version": "1.0.9", | ||
"version": "1.1.0", | ||
"description": "A client side JavaScript image compression library", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -28,4 +28,8 @@ <!-- [](https://travis-ci.org/alextanhongpin/compress.js) --> | ||
### Usage: | ||
### Demo | ||
Try out our demo [here](https://compressjs.herokuapp.com/). | ||
### Usage | ||
```javascript | ||
@@ -42,3 +46,3 @@ | ||
size: 4, // the max size in MB, defaults to 2MB | ||
quality: .75 // the quality of the image, max is 1, | ||
quality: .75, // the quality of the image, max is 1, | ||
maxWidth: 1920, // the max width of the output image, defaults to 1920px | ||
@@ -45,0 +49,0 @@ maxHeight: 1920, // the max height of the output image, defaults to 1920px |
305784
101