jimp get image size

Solutions on MaxInterview for jimp get image size by the best coders in the world

showing results for - "jimp get image size"
Lise
12 Sep 2018
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})