node package manager
Easy sharing. Manage teams and permissions with one click. Create a free org »

png-size

png-size

Read PNG dimensions from a File or Blob

Installation

$ component install component/png-size

Example

var size = require('png-size');
var s = size(buf);
// => { width: 100, height: 150 } 

License

MIT