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

imagemin-advpng

Package Overview
Dependencies
Maintainers
2
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

  • 2.0.0
  • Source
  • npm
  • Socket score

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

imagemin-advpng Build Status 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:

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

License

MIT © imagemin

Keywords

FAQs

Package last updated on 20 Oct 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