Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

jpeg-compressor

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jpeg-compressor

compress bmp to jpeg

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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 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.

Keywords

jpeg

FAQs

Package last updated on 17 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts