JSPM

dataimg-dimensions

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q18435F
  • License MIT

Helper functions for getting dataURL image dimensions width and height from a base64 string

Package Exports

  • dataimg-dimensions

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (dataimg-dimensions) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

small lib to ascertain an image dimension from a dataURL string, uses the bytes between 16-24 to ascertain these properties rather then creating a new element.

Based off the this fiddle by minitech