imagerotatesize

1.0.3 • Public • Published

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

/imagerotatesize/

    Package Sidebar

    Install

    npm i imagerotatesize

    Weekly Downloads

    4

    Version

    1.0.3

    License

    ISC

    Unpacked Size

    1.81 kB

    Total Files

    3

    Last publish

    Collaborators

    • wuyunpeng