png-size-reader

Gets the size of the png image

Usage no npm install needed!

<script type="module">
  import pngSizeReader from 'https://cdn.skypack.dev/png-size-reader';
</script>

README

Build Status

png-size-reader

Gets the size of the png image

Installation

$ npm install png-size-reader

Example

var reader = require('png-size-reader');
reader(tgtFilePath).then(function(result) {
  console.log(result); // [width, height]
});

License

MIT