Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

imagemin-advpng

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imagemin-advpng

advpng imagemin plugin

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
394
increased by79.91%
Maintainers
1
Weekly downloads
 
Created
Source

imagemin-advpng Build Status

advpng imagemin plugin

Install

$ npm install --save imagemin-advpng

Usage

var Imagemin = require('imagemin');
var advpng = require('imagemin-advpng');

var imagemin = new Imagemin()
	.src('images/*.png')
	.dest('build/images')
	.use(advpng({ optimizationLevel: 4 }));

imagemin.run(function (err, files) {
	if (err) {
		throw err;
	}

	console.log('Files optimized successfully!'); 
});

You can also use this plugin with gulp:

var gulp = require('gulp');
var advpng = require('imagemin-advpng');

gulp.task('default', function () {
	return gulp.src('images/*.png')
		.pipe(advpng({ optimizationLevel: 4 }))
		.pipe(gulp.dest('build/images'));
});

Options

optimizationLevel

Type: Number
Default: 3

Select an optimization level between 0 and 4.

Levels:

  1. Don't compress
  2. Compress fast (zlib)
  3. Compress normal (7z)
  4. Compress extra (7z)
  5. Compress extreme (zopfli)

License

MIT © imagemin

Keywords

FAQs

Package last updated on 16 Sep 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc