https://github.com/jdf2e/jdf-jpg
A mozjpeg wrapper for JDF
https://github.com/jdf2e/jdf-jpg
Last synced: about 1 year ago
JSON representation
A mozjpeg wrapper for JDF
- Host: GitHub
- URL: https://github.com/jdf2e/jdf-jpg
- Owner: jdf2e
- Created: 2016-11-21T01:58:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-07-04T07:05:44.000Z (almost 8 years ago)
- Last Synced: 2025-04-24T03:37:04.274Z (about 1 year ago)
- Language: JavaScript
- Size: 1.02 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
[](https://nodei.co/npm/jdf-jpg/)
[](http://badge.fury.io/js/jdf-jpg) [](https://travis-ci.org/jdf2e/jdf-jpg)
# jdf-jpg
> A mozjpeg wrapper for JDF see __https://github.com/mozilla/mozjpeg/__
## Install
```
$ npm install --save jdf-jpg
```
## Usage
```js
const {execFile} = require('child_process');
const mozjpeg = require('jdf-jpg');
execFile(mozjpeg, ['-outfile', 'output.jpg', 'input.jpg'], err => {
console.log('Image minified!');
});
```
## CLI
```
$ npm install --global jdf-jpg
```
```
$ jdf-jpg --help
```