1//Using Jimp - downloadable and docs -> https://www.npmjs.com/package/jimp
2
3const Jimp = require('jimp');
4var image = new Jimp("./path/to/image.jpg/png", function (err, image) {
5 var w = image.bitmap.width; // width of the image
6 var h = image.bitmap.height; // height of the image
7})