npm.io
7.0.0 • Published 4 years agoCLI

advpng-bin

Licence
MIT
Version
7.0.0
Deps
2
Size
1.1 MB
Vulns
0
Weekly
0
Stars
7
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

advpng-bin GitHub Actions Status

The main purpose of this utility is to recompress png files to get the smallest possible size

You probably want imagemin-advpng instead.

Install

$ npm install --save advpng-bin

Usage

import {execFile} from 'node:child_process';
import advpng from 'advpng-bin';

execFile(advpng, ['--recompress', '--shrink-extra', 'image.png'], error => {
	console.log('Image minified!');
});

CLI

$ npm install --global advpng-bin
$ advpng --help

Keywords