png-size

Read PNG dimensions from a File or Blob

png-size

Read PNG dimensions from a File or Blob

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

MIT