Socket
Socket
Sign inDemoInstall

imagemin-jpegtran

Package Overview
Dependencies
218
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    imagemin-jpegtran

jpegtran imagemin plugin


Version published
Weekly downloads
258K
increased by3.05%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

imagemin-jpegtran Build Status Build status

jpegtran imagemin plugin

Install

$ npm install --save imagemin-jpegtran

Usage

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

var imagemin = new Imagemin()
	.src('images/*.jpg')
	.dest('build/images')
	.use(jpegtran());

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

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

Options

progressive

Type: Boolean
Default: false

Lossless conversion to progressive.

License

MIT © imagemin

Keywords

FAQs

Last updated on 10 Sep 2014

Did you know?

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc