PixelJpg
Parse JPEG to ImageData in cross-platform.
Installation
$ npm install pixel-jpg --save
var pixelJpeg= ;console; //object
API
file
) -> promise.then(images
)
pixelJpg.parse(return images
is Array contains one or more ImageData
.
Return the
object
instead ofImageData
in Node.js
var file= 'https://59naga.github.io/fixtures/still.JPG'; pixelJpeg;// {width: 256, height: 192, data: <Uint8Array ..>}