Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yusukebe/go-pngquant

Golang wrapper of pngquant / PNG compressor
https://github.com/yusukebe/go-pngquant

golang png-compressor pngquant

Last synced: 2 days ago
JSON representation

Golang wrapper of pngquant / PNG compressor

Awesome Lists containing this project

README

        

# go-pngquant

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

## Usage

To install, use `go get`:

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

### import

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