go-pngquant is PNG image compressor go-library that wrapping pngquant
command.
pngquant
command is required.
To install, use go get
:
$ go get github.com/yusukebe/go-pngquant
import (
pngquant "github.com/yusukebe/go-pngquant"
)
func Compress(i image.Image, speed string) image.Image, error
func CompressBytes(b []byte, speed string) []bytes, error
MIT
Yusuke Wada http://github.com/yusukebe