1.0.2 • Published 2 years ago
image-size-from-url v1.0.2
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
- .jpg
- .png
- .gif
- .webp
- .svg
- .ico
- .psd
- .bmp
- .cur
- .dds