Image Rotation Algorithm in Javascript & Nodejs
This is a Node.js and Express project
Before installing, download and install Node.js; download Express, formidable, canvas, body-parser modules. You can use npm i module-name
$ npm i express
$ npm i formidable
$ npm i canvas
$ npm i body-parserInstallation is done by copying package.json, Rotator.js, server.js, RotateImage.html, and RotateImageLocal.html to Node.js installation directory
To run the server
$ npm run devBefore run the test, you must install mocha and jsdom
$ npm i mocha
$ npm i jsdomTo run the test
$ npm run test- Image clockwise rotation
- Image upload
- Local HTML script rotation
- Node.js call rotation
- Pure Javascript rotate algorithm without using native API/third party API
Detail presentation is in Rotation_Task.pdf file.