Generate the photo-mosaic for images
Creates and exposes a module called PhotoMosaic to manage everything related to the generation of the photo mosaic. To get a better performance and optimization, it uses Promise and Worker (HTML5 features) to process the operations asynchronously, with the former, and the heavy ones in parallel, with the latter.
The PhotoMosaic module, through the generate function, returns a promise so when every tile is processed and loaded. It responds with a canvas with the photomosaic image ready to be displayed.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes
Download or clone the project using following command:
$ git clone https://github.com/anshckr/mosaic.
├── README
├── css
│ └── main.css
├── js
│ ├── client.js
│ ├── image-helper.js
│ ├── mosaic.js
│ ├── photo-mosaic.js
│ └── worker.js
├── mosaic.html
├── package.json
└── server.js
- NodeJs is a must to run this project
To get the project running -
npm run start
Then, open on your browser: http://localhost:8765/
- Javascript
- Summary:
- indentation should be of 4 space char
- [Comprehensive code conventions and guidelines][4]
- Summary:
- CSS
- HTML - 4 spaces
- Anshul Nema - anshckr