nothing-cdn
v1.0.2
Published
图片自动剪裁
Downloads
7
Readme
根据图片host判断剪裁属性
var cdn = require('nothing-cdn');
cdn.config.bit = 'rem';
var url = 'http://img.alicdn.com/imgextra/i3/18008920/TB2kuYtfWagSKJjy0FcXXcZeVXa_!!18008920.jpg'
var res = cdn(url, {
width: 2.3,
height: 2.3
})