oxipng-bin
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

oxipng-bin

This is a bin wrapper for OxiPNG for use with imagemin and the imagemin-oxipng plugin.

You probably want the @vheemstra/imagemin-oxipng plugin instead.

Install

npm install --save oxipng-bin

Usage

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

execFile(oxipng, [
	'--opt', '4',
	'--strip', 'safe',
	'--out', 'output.png',
	'input.png'
], err => {
	if (err) {
		throw err;
	}

	console.log('Image optimized!');
});

CLI

npm install --global oxipng-bin
oxipng --help

License & Info

MIT © Imagemin
OxiPNG by Josh Holmer (Open-source software, distributed under the MIT license.)
This package is made by Philip van Heemstra
Based on jpegtran-bin by Sindre Sorhus
Info on building oxipng binaries

Package Sidebar

Install

npm i oxipng-bin

Weekly Downloads

45

Version

1.0.0

License

MIT

Unpacked Size

4.56 MB

Total Files

11

Last publish

Collaborators

  • vheemstra