parse-image-dimensions

v1.0.0
get image dimensions by parsing its filename
image dimensions

parse-image-dimensions

Extract image dimensions by parsing its filename.

  • name
  • width
  • height
  • scale

Supported filename format

  • -<width> - image-100.png
  • -<width>x - image-100x.png
  • -<width>x<height> - image-100x200.png
  • -x<height> - image-x200.png
  • -<width>x<height>@<scale>x - [email protected]
  • @<scale>x - [email protected]

License

MIT

npm i parse-image-dimensions

Metadata

  • MIT
  • Whatever
  • Eugeny Vlasenko
  • released 10/11/2014

Downloads

Maintainers