Minify your png files.
pngcrunch is written in Go.
If you know already know Go, then you can stop reading because you already know how this works.
If you don't know Go, the rest of this README is for you. You should
install Go
export your GOPATH
learn how Go works; i.e., go get, go build, go test, and go install
Go works really hard to make your like easy, including the following...
$ go get github.com/rubicks/pngcrunch
Simply
$ go test github.com/rubicks/pngcrunch
or
$ cd $GOPATH/src/github.com/rubicks/pngcrunch && go test
in a temporary directory
$ cd $(mktemp -d) && go build github.com/rubicks/pngcrunch
or
$ cd $GOPATH/src/github.com/rubicks/pngcrunch && go build
to your PATH, assuming you already
export PATH=$PATH:$GOPATH/bin
somewhere, you can
$ go install github.com/rubicks/pngcrunch
Instructions forthcoming, I promise.
The Dockerfile for pngcrunch inherits from the
docker hub official repo for golang. After
you
$ go get github.com/rubicks/pngcrunch
you can
$ docker build -t pngcrunch-golang-app $GOPATH/src/github.com/rubicks/pngcrunch
and
$ docker run -it --rm pngcrunch-golang-app go test -v
just as you would normally.
Content type
Image
Digest
sha256:1a2382b26…
Size
-
Last updated
almost 11 years ago
docker pull rubicks/pngcrunch