pngquant

package module
v0.0.0-...-49b91f1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2020 License: MIT Imports: 7 Imported by: 4

README

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compress

func Compress(input image.Image, speed string) (output image.Image, err error)

func CompressBytes

func CompressBytes(input []byte, speed string) (output []byte, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL