Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.27 KB

File metadata and controls

41 lines (31 loc) · 1.27 KB

Docker Google's Guetzli

Run Google's Guetzli within Docker.

Visit https://github.com/google/guetzli for Guetzli's full documentation

Usage

docker run --rm -v $(pwd):/data ghcr.io/jveldboom/docker-google-guetzli:latest \
  input.jpg output.jpg

Run Examples

docker run --rm -v $(pwd):/data ghcr.io/jveldboom/docker-google-guetzli:latest \
  --quality 85 ./samples/bees.png ./samples/bees-out.jpg
Original Processed with 85%
Original
177 KB
Processed
22 KB
Original
219 KB
Processed
103 KB

Performance

Guetzli is intentionally slow — it tries many encodings to find the best compression. Expect processing to take 1 minute or more per megapixel. It is best suited for batch or offline processing, not real-time use.

It also requires a minimum of 300 MB of memory per megapixel of input image.

Contributing

Build the image locally

# build the image locally
docker build -t docker-google-guetzli .

# run locally built image
docker run --rm -v $(pwd):/data docker-google-guetzli \
  --quality 85 ./samples/bees.png ./samples/bees-out.png

# check size
docker image ls docker-google-guetzli