Skip to content

Repository files navigation

Image Rotation

Image Rotation Algorithm in Javascript & Nodejs

Installation

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-parser

Installation is done by copying package.json, Rotator.js, server.js, RotateImage.html, and RotateImageLocal.html to Node.js installation directory

Run

To run the server

$ npm run dev

Test

Before run the test, you must install mocha and jsdom

$ npm i mocha
$ npm i jsdom

To run the test

$ npm run test

Features

  • Image clockwise rotation
  • Image upload
  • Local HTML script rotation
  • Node.js call rotation
  • Pure Javascript rotate algorithm without using native API/third party API

Presentation

Detail presentation is in Rotation_Task.pdf file.

References

About

Image Rotation Algorithm in Javascript & Nodejs

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages