Skip to content

dominikhlbg/knusperli.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Knusperli.js

Knusperli.js is port of the Knusperli JPEG deblocking decoder.

The goal of Knusperli is to reduce blocking artifacts in decoded JPEG images, by interpreting quantized DCT coefficients in the image data as an interval, rather than a fixed value, and choosing the value from that interval that minimizes discontinuities at block boundaries.

Installation and usage

Install using npm.

npm install knusperli
var knusperli = require('knusperli');

API

knusperli.decode(buffer):{rgba:Uint8Array, width:Number, height:Number}

You can decode every jpeg images and get as return a json object with all rgba values as Uint8Array and width and height

// decode jpegData (array)
knusperli.decode(jpegData);

License

Apache-2.0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages