Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/imagemin/jpegtran-bin
jpegtran bin-wrapper that makes it seamlessly available as a local dependency
https://github.com/imagemin/jpegtran-bin
Last synced: 2 days ago
JSON representation
jpegtran bin-wrapper that makes it seamlessly available as a local dependency
- Host: GitHub
- URL: https://github.com/imagemin/jpegtran-bin
- Owner: imagemin
- License: mit
- Created: 2012-11-21T17:50:19.000Z (almost 12 years ago)
- Default Branch: main
- Last Pushed: 2022-05-12T11:08:28.000Z (over 2 years ago)
- Last Synced: 2024-10-19T18:16:55.796Z (24 days ago)
- Language: JavaScript
- Homepage: http://libjpeg-turbo.virtualgl.org
- Size: 5.84 MB
- Stars: 93
- Watchers: 10
- Forks: 46
- Open Issues: 7
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# jpegtran-bin ![GitHub Actions Status](https://github.com/imagemin/jpegtran-bin/workflows/test/badge.svg?branch=main)
> [libjpeg-turbo](http://libjpeg-turbo.virtualgl.org/) 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`](https://github.com/imagemin/imagemin-jpegtran) instead.
## Install
```
$ npm install --save jpegtran-bin
```## Usage
```js
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](https://github.com/imagemin)