Skip to content

jveldboom/docker-google-guetzli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

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 --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