Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 427 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 427 Bytes

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.