Commit 6ff61a5f authored by rockyl's avatar rockyl

使用tiny-image服务

parent 1d7b9b8d
......@@ -2,10 +2,10 @@
图片压缩
可以压缩png和jpg格式的图片,对png的压缩效果比较显著,压缩比高达15%。
# Install
## Install
yarn add http://gitlab2.dui88.com/laoqifeng/tiny-image.git
#Usage
## Usage
```javascript
import {compressBuffer, compressFile} from 'tiny-image';
let tinyBuffer = compressBuffer('your buffer here');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment