Skip to content

Node.JS module for detecting image dimensions

License

Notifications You must be signed in to change notification settings

hasalfred/image-size

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dependency Status Build Status Technical debt analysis

NPM version Endorse

Instalation

npm install image-size

Usage

var sizeOf = require('image-size');
var dimensions = sizeOf('images/funny-cats.png');
console.log(dimensions.width, dimensions.height);
Async version
var sizeOf = require('image-size');
sizeOf('images/funny-cats.png', function (err, dimensions) {
  console.log(dimensions.width, dimensions.height);
});

Supported formats

  • BMP
  • GIF
  • JPEG
  • PNG
  • PSD
Upcoming
  • TIFF
  • WebP
Credits

not a direct port, but an attempt to have something like dabble's imagesize as a node module.

About

Node.JS module for detecting image dimensions

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 97.9%
  • Makefile 2.1%