1.0.3 • Published 5 years ago

imagerotatesize v1.0.3

Weekly downloads
2
License
ISC
Repository
-
Last release
5 years ago

imageRotateSize

图片顺时针旋转计算图片新的尺寸高度和宽度。

用法

npm install imagerotatesize

const imageRotateSize = require('imagerotatesize');

let {width, height} = imageRotateSize(oldWidth, oldHeight, angle);

####例如: let {width, height} = imageRotateSize(720, 280, 30); // 顺时针30度

console.log(width: ${width}, height: ${height}); // width: 763, height: 602