Socket
Book a DemoInstallSign in
Socket

jpx-decode

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

jpx-decode

JPEG 2000 image decoder in JavaScript

unpublished
latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

jpx-decode

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

import { JpxImage } from 'jpx-decode'

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.

Keywords

jpeg 2000

FAQs

Package last updated on 05 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts