jpambrun / image-JPEG2000

8 stars 25 forks source link

image-JPEG2000

Support repository for a fork of Mozilla's PDF.js that adds support for 16 bit signed grayscale JPEG2000 images.

Install

TODO: bower, grunt, etc.

Usage

  jpxImage.parse(jpxData);
  var width = jpxImage.width;
  var height = jpxImage.height;
  var pixelData = tileComponents.items;

jpxData: a Uint8 buffer containing the JPEG2000 code-stream. pixelData: a Int16 containing the decoded data.