Skip to content

anhulife/jpegtran-bin-gfw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jpegtran-bin-gfw

libjpeg-turbo is a derivative of libjpeg that uses SIMD instructions (MMX, SSE2, NEON) to accelerate baseline JPEG compression and decompression on x86, x86-64, and ARM systems. On such systems, libjpeg-turbo is generally 2-4x as fast as the unmodified version of libjpeg, all else being equal.

Install

$ npm install --save jpegtran-bin-gfw

Usage

var execFile = require('child_process').execFile;
var jpegtran = require('jpegtran-bin-gfw');

execFile(jpegtran, ['-outfile', 'output.jpg', 'input.jpg'], function (err) {
	console.log('Image minified!');
});

CLI

$ npm install --global jpegtran-bin-gfw
$ jpegtran --help

About

jpegtran-bin for gfw

Resources

License

Stars

Watchers

Forks

Packages

No packages published