jpeg2000
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

jpeg2000

This module helps with decoding the JPEG 2000 code stream. All in vanilla javascript with no dependencies. Typings included.

import { JpxImage } from 'jpeg2000'

const codestream = Buffer.from('ff4fff5100290000...', 'hex')

const jpx = new JpxImage()
jpx.parse(codestream)

console.log('width: %d', jpx.width)
console.log('height: %d', jpx.height)
console.log('components: %d', jpx.componentsCount)
console.log('tiles:')
console.log(jpx.tiles)

Credits

This library is heavily based on Mozilla's PDF.js source code.

/jpeg2000/

    Package Sidebar

    Install

    npm i jpeg2000

    Weekly Downloads

    26

    Version

    1.1.1

    License

    Apache-2.0

    Unpacked Size

    104 kB

    Total Files

    10

    Last publish

    Collaborators

    • runk