https://github.com/jdf2e/jdf-png
A pngquant wrapper for JDF
https://github.com/jdf2e/jdf-png
Last synced: about 1 year ago
JSON representation
A pngquant wrapper for JDF
- Host: GitHub
- URL: https://github.com/jdf2e/jdf-png
- Owner: jdf2e
- Created: 2016-11-21T01:55:28.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-22T09:31:30.000Z (over 9 years ago)
- Last Synced: 2025-04-24T01:42:38.748Z (about 1 year ago)
- Language: JavaScript
- Size: 889 KB
- 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-png/)
[](http://badge.fury.io/js/jdf-png) [](https://travis-ci.org/jdf2e/jdf-png)
# jdf-png
> A pngquant wrapper for JDF
## Install
```
$ npm install --save jdf-png
```
## Usage
```js
const execFile = require('child_process').execFile;
const pngquant = require('jdf-png');
execFile(pngquant, ['-o', 'output.png', 'input.png'], err => {
console.log('Image minified!');
});
```
## CLI
```
$ npm install --global jdf-png
```
```
$ jdf-png --help
```