Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 570 Bytes

README.md

File metadata and controls

38 lines (23 loc) · 570 Bytes

go-pngquant

go-pngquant is PNG image compressor go-library that wrapping pngquant command. pngquant command is required.

https://pngquant.org/

Usage

To install, use go get:

$ go get github.com/yusukebe/go-pngquant

import

import (
    pngquant "github.com/yusukebe/go-pngquant"
)

func Compress

func Compress(i image.Image, speed string) image.Image, error

func CompressBytes

func CompressBytes(b []byte, speed string) []bytes, error

License

MIT

Author

Yusuke Wada http://github.com/yusukebe