Answers for "jimp get image size"

0

jimp get image size

//Using Jimp - downloadable and docs -> https://www.npmjs.com/package/jimp

const Jimp = require('jimp');
var image = new Jimp("./path/to/image.jpg/png", function (err, image) {
    var w = image.bitmap.width; //  width of the image
    var h = image.bitmap.height; // height of the image
})
Posted by: Guest on December-29-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language