Socket
Socket
Sign inDemoInstall

@mole-inc/jpegoptim-bin

Package Overview
Dependencies
145
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @mole-inc/jpegoptim-bin

jpegoptim wrapper that makes it seamlessly


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

7.0.0 (2021-07-31)

⚠ BREAKING CHANGES

  • require node.js 12

Features

Readme

Source

jpegoptim-bin Node CI

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.

Downloads Version codecov

Install

$ npm install @mole-inc/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 '@mole-inc/jpegoptim-bin';

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

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

CLI

$ npm install --global @mole-inc/jpegoptim-bin
$ jpegoptim --help

License

This is a fork of imagemin/jpegoptim-bin licensed under the MIT License.

see license file and vendor/jpegoptim-license.txt file.

Keywords

FAQs

Last updated on 31 Jul 2021

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