jpeg-size

Read JPEG image dimensions from a File or Blob

jpeg-size

Read JPEG image dimensions from a File or Blob

$ component install component/jpeg-size
var size = require('jpeg-size');
var s = size(buf);
// => { width: 200, height: 400 } 

MIT