New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

oxipng-bin

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oxipng-bin

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

1.0.0
latest
Source
npm
Version published
Maintainers
1
Created
Source

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

Keywords

imagemin

FAQs

Package last updated on 22 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts