Skip to content

pierreinglebert/node-jpegheader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-jpegheader

  • Build Status
  • Coverage Status
  • Dependency Status

Fast extraction of jpeg informations (width/height/depth/colorspace)

Extract basic jpeg informations such as width, height, depth or colorpsace. This was developped because imagemagick and other tools read all image data to get those header informations and for huge image (>100Mo), it takes several seconds...

Usage

jpegheader = require("jpegheader")
jpegheader.getInfos("image.jpg", function(err, infos) {
	//Infos is {width: 100, heigh: 120, bits: 8, components: 3}
});

components is the number of channels in the image : 1 is for grayscale, 3 for RGB or YCbCr, 4 for CMYK

About

Fast read of jpeg informations (width/height/depth/colorspace)

Resources

License

Stars

Watchers

Forks

Packages

No packages published