Skip to content

chmerev/image-size-from-url

Repository files navigation

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

License

MIT

About

An easy way to get the dimensions of an image from a link.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published