jimp zdobądź rozmiar obrazu

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

const Jimp = require('jimp');
const image = new Jimp("./path/to/image.jpg", function (err, image) {
    var w = image.bitmap.width; //  width of the image
    var h = image.bitmap.height; // height of the image
});
Tobero