Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/imagemin/mozjpeg-bin
mozjpeg bin-wrapper that makes it seamlessly available as a local dependency
https://github.com/imagemin/mozjpeg-bin
Last synced: 3 days ago
JSON representation
mozjpeg bin-wrapper that makes it seamlessly available as a local dependency
- Host: GitHub
- URL: https://github.com/imagemin/mozjpeg-bin
- Owner: imagemin
- License: mit
- Created: 2014-04-23T09:39:25.000Z (over 10 years ago)
- Default Branch: main
- Last Pushed: 2023-08-01T07:25:44.000Z (over 1 year ago)
- Last Synced: 2024-10-30T08:17:31.157Z (14 days ago)
- Language: JavaScript
- Homepage: https://github.com/mozilla/mozjpeg
- Size: 7.41 MB
- Stars: 120
- Watchers: 8
- Forks: 58
- Open Issues: 18
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# mozjpeg-bin ![GitHub Actions Status](https://github.com/imagemin/mozjpeg-bin/workflows/test/badge.svg?branch=main)
> [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
import {execFile} from 'node:child_process';
import mozjpeg from '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)