png

package
v0.0.0-...-bae2323 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodePNG

func DecodePNG(r io.Reader) (image.Image, error)

DecodePNG decodes a PNG file and return an image.

func EncodePNG

func EncodePNG(i image.Image, o *Options) (buf bytes.Buffer, err error)

EncodePNG encodes an image into PNG and returns a buffer.

Types

type Options

type Options struct {
	Quality int `json:"quality"`
}

Options represent PNG encoding options.

Jump to

Keyboard shortcuts

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