optipng-bin

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

  • Owner: imagemin/optipng-bin
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

optipng-bin Build Status

OptiPNG is a PNG optimizer that recompresses image files to a smaller size, without losing any information

You probably want imagemin-optipng instead.

Install

$ npm install --save optipng-bin

Usage

const {promisify} = require('util');
const {execFile} = require('child_process');
const optipng = require('optipng-bin');

const execFileP = promsify(execFile);

(async () => {
	await execFile(optipng, ['-out', 'output.png', 'input.png']);
	console.log('Image minified!');
})();

CLI

$ npm install --global optipng-bin
$ optipng --help

Main metrics

Overview
Name With Ownerimagemin/optipng-bin
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 1)
Platform
License:MIT License
所有者活动
Created At2012-11-21 14:31:09
Pushed At2023-12-20 13:21:02
Last Commit At
Release Count46
Last Release Namev9.0.0 (Posted on 2022-05-04 22:02:30)
First Release Namev0.2.0 (Posted on 2013-02-22 19:55:49)
用户参与
Stargazers Count98
Watchers Count13
Fork Count66
Commits Count181
Has Issues Enabled
Issues Count84
Issue Open Count19
Pull Requests Count21
Pull Requests Open Count5
Pull Requests Close Count20
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private