Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 946 Bytes

README.md

File metadata and controls

36 lines (28 loc) · 946 Bytes

Docker Google's Guetzli

Run Google's Guetzli within Docker.

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

Usage

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

Run Examples

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

TODO

  • create pull request workflow
  • include .dockerignore to reduce image size
  • see if we can reduce overall container size
# dockerfile
apk add --no-cache --virtual .build-deps

...

apk del --no-cache .build-deps
rm -rf /var/tmp/* /tmp/* /opt/build