Skip to content

About

Run Google's Guetzli through Docker

Topics

Resources

Stars

18 stars

Watchers

0 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

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

About

Run Google's Guetzli through Docker

Topics

Resources

Stars

18 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages