Get the dimensions of the image at the link
An easy way to get the dimensions of an image from a link.
Install package
To deploy this project run
npm i image-size-from-url
Usage/Examples
Import
import getImageSize from 'image-size-from-url';
const {width, height} = await getImageSize('URL');
Available image formats
- [x] .jpg
- [x] .png
- [x] .gif
- [x] .webp
- [x] .svg
- [x] .ico
- [x] .psd
- [x] .bmp
- [x] .cur
- [x] .dds