jpeg-compressor
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

jpeg-compressor

npm Coveralls travis build status License

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.

Readme

Keywords

Package Sidebar

Install

npm i jpeg-compressor

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

1.68 MB

Total Files

16

Last publish

Collaborators

  • upupming