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

jpegoptim-bin

Package Overview
Dependencies
Maintainers
7
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jpegoptim-bin

jpegoptim wrapper that makes it seamlessly available as a local dependency

  • 7.0.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
7
Created
Source

jpegoptim-bin GitHub Actions Status

jpegoptim is a utility for optimizing JPEG files that provides lossless optimization (based on optimizing the Huffman tables) and "lossy" optimization based on setting a maximum quality factor

You probably want imagemin-jpegoptim instead.

Install

$ npm install jpegoptim-bin

Make sure you have the correct version of libjpeg. See jpegoptim's README for more information.

Usage

import {execFile} from 'child_process';
import jpegoptim from 'jpegoptim-bin';

const args = [
	'--overwrite',
	'--strip-all',
	'--strip-iptc',
	'--strip-icc',
	'--all-progressive',
	'--dest=build',
	'input.jpg'
];

execFile(jpegoptim, args, error => {
	console.log('Image minified');
});

CLI

$ npm install --global jpegoptim-bin
$ jpegoptim --help

License

MIT © Imagemin

Keywords

FAQs

Package last updated on 10 Nov 2021

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