package jpeg

Import Path
	image/jpeg (on golang.org and go.dev)

Dependency Relation
	imports 6 packages, and imported by 0 packages

Involved Source Files
	    fdct.go
	    huffman.go
	    idct.go
	d-> reader.go
	    scan.go
	    writer.go

Exported Type Names

type FormatError string A FormatError reports that the input is not a valid JPEG. (T) Error() string T : error
type Options (struct) Options are the encoding parameters. Quality ranges from 1 to 100 inclusive, higher is better. Quality int func Encode(w io.Writer, m image.Image, o *Options) error
type Reader (interface) Deprecated: Reader is not used by the image/jpeg package and should not be used by others. It is kept for compatibility. (T) Read(p []byte) (n int, err error) (T) ReadByte() (byte, error) bufio.(*Reader) bufio.ReadWriter bytes.(*Buffer) bytes.(*Reader) compress/flate.Reader (interface) internal/trace.(*Writer) strings.(*Reader) T : compress/flate.Reader T : io.ByteReader T : io.Reader
type UnsupportedError string An UnsupportedError reports that the input uses a valid but unimplemented JPEG feature. (T) Error() string T : error
Exported Values
func Decode(r io.Reader) (image.Image, error) Decode reads a JPEG image from r and returns it as an image.Image.
func DecodeConfig(r io.Reader) (image.Config, error) DecodeConfig returns the color model and dimensions of a JPEG image without decoding the entire image.
const DefaultQuality = 75 DefaultQuality is the default quality encoding parameter.
func Encode(w io.Writer, m image.Image, o *Options) error Encode writes the Image m to w in JPEG 4:2:0 baseline format with the given options. Default parameters are used if a nil *Options is passed.