Run Google's Guetzli within Docker.
Visit https://github.com/google/guetzli for Guetzli's full documentation
docker --rm -v $(PWD):/tmp ghcr.io/jveldboom/docker-google-guetzli:latest \
input.jpg output.jpg
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% |
---|---|
177 KB |
22 KB |
219 KB |
103 KB |
- 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