Socket
Socket
Sign inDemoInstall

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


Version published
Maintainers
2
Created
Source

imagemin-zopfli Build Status Build status

zopfli imagemin plugin

Install

$ npm install --save imagemin-zopfli

Usage

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

new Imagemin()
	.src('images/*.png')
	.dest('build/images')
	.use(imageminZopfli({more: true}))
	.run();

You can also use this plugin with gulp:

var gulp = require('gulp');
var imageminZopfli = require('imagemin-zopfli');

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

API

imageminZopfli(options)

options.8bit

Type: boolean
Default: false

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

options.more

Type: boolean
Default: false

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

License

MIT © imagemin

Keywords

FAQs

Package last updated on 22 Apr 2015

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