jpeg

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeJPEG

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

DecodeJPEG decodes a JPEG file and return an image.

func EncodeJPEG

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

EncodeJPEG encodes an image into JPEG and returns a buffer.

Types

type Options

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

Options represent JPEG encoding options.

Jump to

Keyboard shortcuts

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