1.0.0 • Published 5 years ago

jpeg-compressor v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

jpeg-compressor

This is a implementation of jpeg compressor.

Installation

npm install jpeg-compressor

Usage

const JpegEncoder = require('../dist/index')
const encoder = new JpegEncoder();
encoder.readFromBMP('/xxx/xxx.bmp');
encoder.encodeToJPG('/xxx/xxx.jpg', 50);

Performance

Original bmpCompressed jpgCompression ratioTime used
1,440,054 bytes68,888 bytes0.047,83,843ms

This project is for education only, and it's my lab homework at Harbin Institute of Technology, if you would like to use it in your project, please fork and try to improve its performance as you like.