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

imagemin-zopfli

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imagemin-zopfli

zopfli imagemin plugin

  • 3.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
645
decreased by-57.11%
Maintainers
2
Weekly downloads
 
Created
Source

imagemin-zopfli Build Status Build status

zopfli imagemin plugin

Install

$ npm install --save imagemin-zopfli

Usage

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

var imagemin = new Imagemin()
	.src('images/*.png')
	.dest('build/images')
	.use(zopfli({ more: true }));

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 zopfli = require('imagemin-zopfli');

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

Options

8bit

Type: Boolean
Default: false

Convert 16-bit per channel image to 8-bit per channel.

more

Type: Boolean
Default: false

Compress more using more iterations (depending on file size).

License

MIT © imagemin

Keywords

FAQs

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