img-stats

WebJar for img-stats

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

img-stats
Last Version

Last Version

0.5.2
Release Date

Release Date

Type

Type

jar
Description

Description

img-stats
WebJar for img-stats
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/jefflembeck/img-stats

Download img-stats

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/img-stats/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>img-stats</artifactId>
    <version>0.5.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/img-stats/
implementation 'org.webjars.npm:img-stats:0.5.2'
// https://jarcasting.com/artifacts/org.webjars.npm/img-stats/
implementation ("org.webjars.npm:img-stats:0.5.2")
'org.webjars.npm:img-stats:jar:0.5.2'
<dependency org="org.webjars.npm" name="img-stats" rev="0.5.2">
  <artifact name="img-stats" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='img-stats', version='0.5.2')
)
libraryDependencies += "org.webjars.npm" % "img-stats" % "0.5.2"
[org.webjars.npm/img-stats "0.5.2"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : xmldom jar [0.1.19,0.2)

Project Modules

There are no modules declared in this project.

img-stats

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.

Documentation

(Coming soon)

Examples

(Coming soon)

Contributing

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)

License

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

Versions

Version
0.5.2