https://github.com/yusukebe/go-pngquant
Golang wrapper of pngquant / PNG compressor
https://github.com/yusukebe/go-pngquant
golang png-compressor pngquant
Last synced: 20 days ago
JSON representation
Golang wrapper of pngquant / PNG compressor
- Host: GitHub
- URL: https://github.com/yusukebe/go-pngquant
- Owner: yusukebe
- License: mit
- Created: 2016-02-11T00:27:58.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-02-23T09:02:59.000Z (over 5 years ago)
- Last Synced: 2025-04-19T11:20:17.646Z (3 months ago)
- Topics: golang, png-compressor, pngquant
- Language: Go
- Size: 43.9 KB
- Stars: 34
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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