Gathering detailed insights and metrics for jpeg-lossless-decoder-js
Gathering detailed insights and metrics for jpeg-lossless-decoder-js
Gathering detailed insights and metrics for jpeg-lossless-decoder-js
Gathering detailed insights and metrics for jpeg-lossless-decoder-js
npm install jpeg-lossless-decoder-js
Typescript
Module System
Node Version
NPM Version
TypeScript (56.98%)
JavaScript (43.02%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
70 Stars
141 Commits
18 Forks
8 Watchers
1 Branches
5 Contributors
Updated on Feb 11, 2025
Latest Version
2.1.2
Package Id
jpeg-lossless-decoder-js@2.1.2
Unpacked Size
5.79 MB
Size
4.80 MB
File Count
41
NPM Version
10.3.0
Node Version
20.8.0
Published on
Apr 02, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
A common DICOM compression format is JPEG Lossless. This format is generally not supported in standard JPEG decoder libraries.
This decoder can read data from the following DICOM transfer syntaxes:
API and more examples
1var decoder = new jpeg.lossless.Decoder(); 2var output = decoder.decompress(buffer [, offset [, length]]); 3 4// Parameters 5// {ArrayBuffer} buffer 6// {Number} offset offset into buffer (default = 0) 7// {Number} length length of buffer (default = end of JPEG block) 8 9// Returns 10// {ArrayBuffer} output (size = cols * rows * bytesPerComponent * numComponents)
Get a packaged source file from the release folder:
Or install via NPM:
npm install jpeg-lossless-decoder-js
npm test
npm run build
This will output lossless.js
and lossless-min.js
alongside declaration files and source maps to /release
.
This decoder was originally written by Helmut Dersch for Java. I added support for selection values 2 through 7, contributed bug fixes and ported to JavaScript.
Also thanks to @jens-ox for modernizing this package to TypeScript.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 3/17 approved changesets -- score normalized to 1
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
17 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More