Socket
Socket
Sign inDemoInstall

jpegtran-bin

Package Overview
Dependencies
132
Maintainers
6
Versions
36
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    jpegtran-bin

jpegtran (part of libjpeg-turbo) bin-wrapper that makes it seamlessly available as a local dependency


Version published
Weekly downloads
298K
increased by2.61%
Maintainers
6
Install size
5.55 MB
Created
Weekly downloads
 

Readme

Source

jpegtran-bin GitHub Actions Status

libjpeg-turbo is a derivative of libjpeg that uses SIMD instructions (MMX, SSE2, NEON) to accelerate baseline JPEG compression and decompression on x86, x86-64, and ARM systems. On such systems, libjpeg-turbo is generally 2-4x as fast as the unmodified version of libjpeg, all else being equal.

You probably want imagemin-jpegtran instead.

Install

$ npm install --save jpegtran-bin

Usage

import {execFile} from 'node:child_process';
import jpegtran from 'jpegtran-bin';

execFile(jpegtran, ['-outfile', 'output.jpg', 'input.jpg'], error => {
	console.log('Image minified!');
});

CLI

$ npm install --global jpegtran-bin
$ jpegtran --help

License

MIT © Imagemin

Keywords

FAQs

Last updated on 12 May 2022

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