Skip to content

59naga/pixel-jpg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PixelJpg NPM version Build Status Coverage Status

Sauce Test Status

Parse JPEG to ImageData in cross-platform.

Installation

$ npm install pixel-jpg --save
var pixelJpeg= require('pixel-jpg');
console.log(pixelJpeg); //object

API

pixelJpg.parse(file) -> promise.then(images)

return images is Array contains one or more ImageData.

Return the object instead of ImageData in Node.js

var file= 'https://59naga.github.io/fixtures/still.JPG';

pixelJpeg.parse(file).then(function(images){
  console.log(images[0]);
});
// {width: 256, height: 192, data: <Uint8Array ..>}

Related projects

License

MIT

About

Parse Jpeg to ImageData in cross-platform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published