https://github.com/astronomersiva/rotate-image
Rotates an image by n degrees using node-canvas.
https://github.com/astronomersiva/rotate-image
Last synced: about 2 months ago
JSON representation
Rotates an image by n degrees using node-canvas.
- Host: GitHub
- URL: https://github.com/astronomersiva/rotate-image
- Owner: astronomersiva
- Created: 2018-04-24T17:00:38.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-08T19:08:49.000Z (almost 7 years ago)
- Last Synced: 2025-02-24T03:16:09.230Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.73 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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 to `rotated-${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
