I am trying to get the dimensions and size of images from the URL. I am using npm package probe-image-size but it gives me Error ProbeError: unrecognized file format on .svg and .gif files such as https://www.se.com//us/shop-static/assets/images/brand/squared-logo-green.svg https://soneparseaapacidprodstg.blob.core.windows.net/datatoyoustaging/brandLogo.gif
const probe = require("probe-image-size");
const getFileMetaData = (fileUrl) =>
new Promise((resolve, reject) => {
probe(fileUrl)
.then((metaData) => resolve(metaData))
.catch((err) => reject(err));
});