Socket
Socket
Sign inDemoInstall

@mole-inc/imagemin-jpegoptim

Package Overview
Dependencies
192
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @mole-inc/imagemin-jpegoptim

Imagemin plugin for jpegoptim


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

7.0.0 (2020-05-01)

⚠ BREAKING CHANGES

  • use system binary if possible and drop supporting Node.js < 10

Features

  • use system binary if possible and drop supporting Node.js < 10 (eaa12cf)

Readme

Source

imagemin-jpegoptim Node CI

Imagemin plugin for jpegoptim

Downloads Version codecov

Install

$ npm install @mole-inc/imagemin-jpegoptim

See jpegoptim-bin's install section for requirements.

Usage

const imagemin = require('imagemin');
const imageminJpegoptim = require('@mole-inc/imagemin-jpegoptim');

(async () => {
	await imagemin(['images/*.jpg'], 'build/images', {
		use: [
			imageminJpegoptim()
		]
	});

	console.log('Images optimized');
})();

API

imageminJpegoptim([options])(buffer)

Returns a Promise<Buffer>.

options

Type: Object

progressive

Type: boolean
Default: false

Lossless conversion to progressive.

max

Type: number

Set maximum image quality factor. (0-100).

size

Type: number string

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

stripAll

Type: boolean
Default: true

Strip all markers from output file.

Note: If you want to control what markers are stripped, this must be set to false.

stripCom

Type: boolean
Default: true

Strip comment markers from output file.

stripExif

Type: boolean
Default: true

Strip EXIF markers from output file.

stripIptc

Type: boolean
Default: true

Strip IPTC/Photoshop (APP13) markers from output file.

stripIcc

Type: boolean
Default: true

Strip ICC profile markers from output file.

stripXmp

Type: boolean
Default: true

Strip XMP markers markers from output file.

buffer

Type: buffer

Buffer to optimize.

License

This is a fork of imagemin/imagemin-jpegoptim.

see license file.

Keywords

FAQs

Last updated on 01 May 2020

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc