Skip to content

mvanderw/image-size

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dependency Status NPM version Build Status 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

NodeJS module for detecting image dimensions

Resources

Stars

Watchers

Forks

Packages

No packages published