jpeg-compressor
v1.0.0
Published
compress bmp to jpeg
Downloads
10
Readme
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 bmp | Compressed jpg | Compression ratio | Time used| | --------------- | -------------- | ----------------- |----| | 1,440,054 bytes | 68,888 bytes | 0.047,8 |3,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.