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

pngcrush-bin

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pngcrush-bin

Pngcrush wrapper that makes it seamlessly available as a local dependency on OS X, Linux

0.1.15
Source
npm
Version published
Weekly downloads
5.8K
6.74%
Maintainers
1
Weekly downloads
 
Created
Source

node-pngcrush-bin

pngcrush Node.js wrapper that optimize PNG images.

Pngcrush is an optimizer for PNG (Portable Network Graphics) files. It can be run from a commandline in an MSDOS window, or from a UNIX or LINUX commandline. Its main purpose is to reduce the size of the PNG IDAT datastream by trying various compression levels an PNG filter methods. It also can be used to remove unwanted ancillary chunks, or to add certain chunks including gAMA, tRNS, iCCP, and textual chunks.

Build Status NPM version Dependency Status devDependency Status

Install

$ npm install --save pngcrush-bin

Usage

var execFile = require('child_process').execFile;
var pngcrush = require('pngcrush-bin').path;

execFile(pngcrush, ['-reduce', '-brute', 'input.png', 'output.png'], function (err) {
  if (err) {
    throw err;
  }

  console.log('Image minified');
});

License

This is licensed under BSD.

pngcrush is licensed under OSI Approved License.

Keywords

png

FAQs

Package last updated on 24 Jun 2014

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