Package Exports
- image-dimensionjs
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 (image-dimensionjs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
image-dimensionjs
Description
pure js module get image size, image dimensions.
Browser
<script src="./image-dimension.js" ></script>
<script>
console.log(JSON.stringify(ReadJPG(bytes)))
console.log(JSON.stringify(ReadPNG(bytes)))
console.log(JSON.stringify(ReadGIF(bytes)))
console.log(JSON.stringify(ReadBMP(bytes)))
console.log(JSON.stringify(ReadPNGBase64(base64)))
console.log(JSON.stringify(ReadJPGBase64(base64)))
console.log(JSON.stringify(ReadGIFBase64(base64)))
console.log(JSON.stringify(ReadBMPBase64(base64)))
</script> Module
import { ReadJPG, ReadPNG, ReadGIF, ReadBMP } from './image-dimension.js'
console.log(JSON.stringify(ReadJPG(bytes)))
console.log(JSON.stringify(ReadPNG(bytes)))
console.log(JSON.stringify(ReadGIF(bytes)))
console.log(JSON.stringify(ReadBMP(bytes)))
console.log(JSON.stringify(ReadPNGBase64(base64)))
console.log(JSON.stringify(ReadJPGBase64(base64)))
console.log(JSON.stringify(ReadGIFBase64(base64)))
console.log(JSON.stringify(ReadBMPBase64(base64)))