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

imagemin-jpegoptim

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imagemin-jpegoptim

jpegoptim imagemin plugin

  • 4.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.7K
increased by10.69%
Maintainers
2
Weekly downloads
 
Created
Source

imagemin-jpegoptim Build Status Build status

jpegoptim imagemin plugin

Install

$ npm install --save imagemin-jpegoptim

Usage

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

var imagemin = new Imagemin()
	.src('images/*.jpg')
	.dest('build/images')
	.use(jpegoptim({ progressive: 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 jpegoptim = require('imagemin-jpegoptim');

gulp.task('default', function () {
	return gulp.src('images/*.jpg')
		.pipe(jpegoptim({ progressive: true })())
		.pipe(gulp.dest('build/images'));
});

Options

progressive

Type: Boolean
Default: false

Lossless conversion to progressive.

max

Type: Number

Set maximum image quality factor. (0 - 100)

size

Type: Number or String

Try to optimize file to given size. Target size is specified either in kilo bytes (1 -) or as percentage (1% - 99%).

License

MIT © imagemin

Keywords

FAQs

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