imagemin / jpeg-recompress-bin

jpeg-recompress bin-wrapper that makes it seamlessly available as a local dependency

Home Page:https://github.com/danielgtaylor/jpeg-archive

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jpeg-recompress-bin GitHub Actions Status

Compress JPEGs by re-encoding to the smallest JPEG quality while keeping perceived visual quality the same and by making sure huffman tables are optimized

You probably want imagemin-jpeg-recompress instead.

Install

$ npm install --save jpeg-recompress-bin

Usage

import {execFile} from 'node:child_process';
import jpegRecompress from 'jpeg-recompress-bin';

execFile(jpegRecompress, ['--quality high', '--min 60', 'input.jpg', 'output.jpg'], error => {
	console.log('Image minified');
});

CLI

$ npm install --global jpeg-recompress-bin
$ jpeg-recompress --help

License

MIT © Imagemin

About

jpeg-recompress bin-wrapper that makes it seamlessly available as a local dependency

https://github.com/danielgtaylor/jpeg-archive

License:MIT License


Languages

Language:JavaScript 100.0%