imagemin / advpng-bin

AdvPNG bin-wrapper that makes it seamlessly available as a local dependency

Home Page:https://github.com/amadvance/advancecomp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

AdvPNG bin-wrapper that makes it seamlessly available as a local dependency

https://github.com/amadvance/advancecomp

License:MIT License


Languages

Language:JavaScript 100.0%