⛩ qiniu-image-view2
$ npm i --save qiniu-image-view2
# or
$ yarn add qiniu-image-view2
import qiniuImageView2 from 'qiniu-image-view2'
const imageURL = 'http://www.something.com/one.png'
qiniuImageView2(imageURL, {
mode: 0,
h: 200,
q: 80,
format: 'webp'
})
// => http://www.something.com/one.png?imageView2/mode/0/h/200/q/80/format/webp
MIT © Limichange