Overview

Package jpeg implements a JPEG image decoder and encoder.

JPEG is defined in ITU-T T.81: .

Index

fdct.go idct.go scan.go

DefaultQuality is the default quality encoding parameter.

func Decode

    Decode reads a JPEG image from r and returns it as an image.Image.

    func DecodeConfig

    1. func DecodeConfig(r io.) (image., error)

    DecodeConfig returns the color model and dimensions of a JPEG image without
    decoding the entire image.

    Encode writes the Image m to w in JPEG 40 baseline format with the given
    options. Default parameters are used if a nil *Options is passed.

    type

    1. type FormatError

    A FormatError reports that the input is not a valid JPEG.

    1. func (e FormatError) Error()

    type Options

    Options are the encoding parameters. Quality ranges from 1 to 100 inclusive,
    higher is better.

    1. type Reader interface {
    2. io.
    3. io.

    Deprecated: Reader is deprecated.

    type UnsupportedError

    1. type UnsupportedError string

    An UnsupportedError reports that the input uses a valid but unimplemented JPEG
    feature.