pngout-bin

2019-08-20 admin

pngout-bin是什么

什么是pngout-bin,pngout wrapper that makes it seamlessly available as a local dependency

pngout-bin使用教程帮助文档

pngout-bin Build Status

pngout optimizes the size of PNG files losslessly

You probably want imagemin-pngout instead.

Install

$ npm install --save pngout-bin

Usage

const {execFile} = require('child_process');
const pngout = require('pngout-bin');

execFile(pngout, ['input.png', 'output.png', '-s0', '-k0', '-f0'], err => {
	console.log('Image minified!');
});

CLI

$ npm install --global pngout-bin

$ pngout --help

License

MIT © Imagemin

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-73038.html

文章标题:pngout-bin

回到顶部