package jpeg

Import Path
	image/jpeg (on

Dependency Relation
	imports 6 packages, and imported by 0 packages

Involved Source Files fdct.go huffman.go idct.go Package jpeg implements a JPEG image decoder and encoder. JPEG is defined in ITU-T T.81: scan.go writer.go
Package-Level Type Names (total 4)
/* sort by: | */
A FormatError reports that the input is not a valid JPEG. ( FormatError) Error() string FormatError : error
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
Deprecated: Reader is not used by the image/jpeg package and should not be used by others. It is kept for compatibility. ( Reader) Read(p []byte) (n int, err error) ( Reader) ReadByte() (byte, error) *bufio.Reader bufio.ReadWriter *bytes.Buffer *bytes.Reader compress/flate.Reader (interface) *internal/trace.Writer *internal/zstd.Reader *strings.Reader Reader : compress/flate.Reader Reader : io.ByteReader Reader : io.Reader
An UnsupportedError reports that the input uses a valid but unimplemented JPEG feature. ( UnsupportedError) Error() string UnsupportedError : error
Package-Level Functions (total 3)
Decode reads a JPEG image from r and returns it as an image.Image.
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 4:2:0 baseline format with the given options. Default parameters are used if a nil *Options is passed.
Package-Level Constants (only one)
DefaultQuality is the default quality encoding parameter.