@astronomersiva/rotate-image
v1.0.1
Published
Rotates an image by n degrees using node-canvas.
Downloads
6
Readme
rotate-image
Rotates a given image by n degrees with node-canvas.
Install
- Run
npm install -g @astronomersiva/rotate-image
.
Usage
dest
is optional. Defaults torotated-${src}
.
(async () => {
const rotate = require('rotate-image');
const options = {
src: 'hello.png',
dest: 'rotated.png',
rotation: 60
};
await rotate(options);
})();
Screenshots
Before Rotation
After Rotation