schnee effeckt und fehler Korektur
This commit is contained in:
40
node_modules/mozjpeg/readme.md
generated
vendored
Normal file
40
node_modules/mozjpeg/readme.md
generated
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
# mozjpeg-bin 
|
||||
|
||||
> [mozjpeg](https://github.com/mozilla/mozjpeg) is a production-quality JPEG encoder that improves compression while maintaining compatibility with the vast majority of deployed decoders
|
||||
|
||||
You probably want [`imagemin-mozjpeg`](https://github.com/imagemin/imagemin-mozjpeg) instead.
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install mozjpeg
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const {execFile} = require('child_process');
|
||||
const mozjpeg = require('mozjpeg');
|
||||
|
||||
execFile(mozjpeg, ['-outfile', 'output.jpg', 'input.jpg'], err => {
|
||||
console.log('Image minified!');
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
## CLI
|
||||
|
||||
```
|
||||
$ npm install --global mozjpeg
|
||||
```
|
||||
|
||||
```
|
||||
$ mozjpeg --help
|
||||
```
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Imagemin](https://github.com/imagemin)
|
||||
Reference in New Issue
Block a user