jpegtran-bin
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/jpegtran-bin package

7.0.0 • Public • Published

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

Package Sidebar

Install

npm i jpegtran-bin

Weekly Downloads

295,214

Version

7.0.0

License

MIT

Unpacked Size

1.66 MB

Total Files

11

Last publish

Collaborators

  • nothingismagick
  • sindresorhus
  • kevva
  • 1000ch
  • xhmikosr
  • shinnn