mosaikr
Create a mosaic from a list of images.
It uses Sharp to operate on images.
Install
Install with npm
npm install mosaikr
Usage
; // This will create a 3x2 grid where each image is 200x200pxmosaikr;
; // This will do the same but it won't output the image.// Instead, a Sharp object will be returned asynchronously to allow other operations// (note that there's no output parameter here); // Now you can do whatever you want here// (this code will do exactly the same as above)img.toFormat'jpeg' .toFile'mosaic.jpg';