jpegtran-bin

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

MIT 36 个版本
安装
npm install jpegtran-bin
yarn add jpegtran-bin
pnpm add jpegtran-bin
bun add jpegtran-bin
README

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

版本列表
7.0.0 2022-05-12
6.0.1 2021-11-10
6.0.0 2021-10-23
5.0.2 2020-06-30
5.0.1 2020-05-30
5.0.0 2020-05-29
4.0.0 2018-11-02
3.2.0 2016-12-14
3.1.0 2016-07-13
3.0.6 2015-11-13
3.0.5 2015-10-10
3.0.4 2015-07-04
3.0.3 2015-07-03
3.0.2 2015-06-16
3.0.1 2015-06-06
3.0.0 2015-06-06
2.0.2 2014-12-08
2.0.1 2014-11-24
2.0.0 2014-10-20
1.0.2 2014-09-08
1.0.1 2014-09-01
1.0.0 2014-08-18
0.2.8 2014-08-08
0.2.7 2014-06-19
0.2.6 2014-03-21
0.2.3 2014-01-13
0.2.2 2013-12-02
0.2.1 2013-11-20
0.2.0 2013-08-23
0.1.7 2013-05-04
0.1.6 2013-05-04
0.1.5 2013-04-18
0.1.4 2013-04-08
0.1.3 2013-03-06
0.1.2 2013-03-04
0.1.0 2012-12-06