Categorygithub.com/akovalevich/go-optipng
repositorypackage
0.0.0-20171127111626-8dd68d798502
Repository: https://github.com/akovalevich/go-optipng.git
Documentation: pkg.go.dev

# README

go-optipng

Golang wrapper of optipng / Advanced PNG Optimizer optipng command is required.

http://optipng.sourceforge.net/

Usage

To install, use go get:

$ go get github.com/AKovalevich/go-optipng

import

import (
    optipng "github.com/AKovalevich/go-optipng"
)

func Compress

func Compress(i image.Image, args []string) image.Image, error

func CompressBytes

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

License

MIT

Author

Kovalevich Artem https://github.com/AKovalevich