ubdate
This commit is contained in:
40
node_modules/jpegtran-bin/readme.md
generated
vendored
Normal file
40
node_modules/jpegtran-bin/readme.md
generated
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
# jpegtran-bin [](https://travis-ci.org/imagemin/jpegtran-bin)
|
||||
|
||||
> [libjpeg-turbo](http://libjpeg-turbo.virtualgl.org/) 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.
|
||||
|
||||
You probably want [`imagemin-jpegtran`](https://github.com/imagemin/imagemin-jpegtran) instead.
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save jpegtran-bin
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var execFile = require('child_process').execFile;
|
||||
var jpegtran = require('jpegtran-bin');
|
||||
|
||||
execFile(jpegtran, ['-outfile', 'output.jpg', 'input.jpg'], function (err) {
|
||||
console.log('Image minified!');
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
## CLI
|
||||
|
||||
```
|
||||
$ npm install --global jpegtran-bin
|
||||
```
|
||||
|
||||
```
|
||||
$ jpegtran --help
|
||||
```
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Imagemin](https://github.com/imagemin)
|
||||
Reference in New Issue
Block a user