LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

guetzli

Perceptual JPEG encoder that optimizes for visual quality at small file sizes

TLDR

Re-encode a JPEG
$ guetzli [input.jpg] [output.jpg]
copy
Encode a PNG to JPEG
$ guetzli [input.png] [output.jpg]
copy
Set quality level (84-100)
$ guetzli --quality [90] [input.jpg] [output.jpg]
copy
Maximum compression (lowest supported quality)
$ guetzli --quality [84] [input.jpg] [output.jpg]
copy
Show progress trace
$ guetzli --verbose [input.png] [output.jpg]
copy

SYNOPSIS

guetzli [--quality Q] [--verbose] input output.jpg

DESCRIPTION

Guetzli is a JPEG encoder that targets the human visual system. It uses Butteraugli, a psychovisual model, to search the JPEG quantization space and produce baseline-compatible JPEG files that are typically 20-30% smaller than equivalent libjpeg output at the same perceived quality.Output files are compatible with all standard JPEG decoders. The trade-off is encoding cost: guetzli is computationally and memory intensive.

PARAMETERS

input

Source image. PNG and JPEG inputs are supported.
output.jpg
Destination JPEG file.
--quality Q
Visual quality, expressed in libjpeg-equivalent units. Range 84-100, default 95. Values below 84 are not supported.
--verbose
Print a trace of encoding attempts.

INSTALL

sudo apt install guetzli
copy
sudo pacman -S guetzli
copy
sudo apk add guetzli
copy
brew install guetzli
copy
nix profile install nixpkgs#guetzli
copy

CAVEATS

Very slow: encoding a single megapixel can take a minute or more. Memory usage is roughly 300 MB per megapixel. Only quality values 84-100 are accepted. Best results come from non-degraded sources (PNG or high-quality JPEG); re-encoding heavily compressed JPEGs offers limited gains.

HISTORY

Guetzli was developed by Google Research and released as open source in March 2017 alongside the Butteraugli perceptual distance metric.

SEE ALSO

cjpeg(1), jpegoptim(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid