Grabs stats of the image you feed it

npm install img-stats
187 downloads in the last day
791 downloads in the last week
2 991 downloads in the last month


Grabs stats of the image you feed it

Getting Started

On the server

Install the module with: npm install img-stats

var img_stats = require('img-stats');
img_stats.stats( '/path/to/img.png' , function( data ){
  console.log(data.width); // 100
  console.log(data.height); // 100

In the browser

Download the production version or the development version.


(Coming soon)


(Coming soon)


In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.

Also, please don't edit files in the "dist" subdirectory as they are generated via grunt. You'll find source code in the "lib" subdirectory!

Release History

(Nothing yet)


Copyright (c) 2013 Jeffrey Lembeck
Licensed under the MIT license.

npm loves you