image-size-from-url
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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

License

MIT

Package Sidebar

Install

npm i image-size-from-url

Weekly Downloads

83

Version

1.0.2

License

MIT

Unpacked Size

37 kB

Total Files

28

Last publish

Collaborators

  • andrey_chmerev