import "image/jpeg"
Package jpeg implements a JPEG image decoder and encoder.
JPEG is defined in ITU-T T.81: https://www.w3.org/Graphics/JPEG/itu-t81.pdf.
fdct.go huffman.go idct.go reader.go scan.go writer.go
const DefaultQuality = 75
DefaultQuality is the default quality encoding parameter.
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.
A FormatError reports that the input is not a valid JPEG.
func (e FormatError) Error() string
Options are the encoding parameters. Quality ranges from 1 to 100 inclusive, higher is better.
type Reader interface { io.ByteReader io.Reader }
Deprecated: Reader is not used by the image/jpeg package and should not be used by others. It is kept for compatibility.
An UnsupportedError reports that the input uses a valid but unimplemented JPEG feature.
func (e UnsupportedError) Error() string
Package jpeg imports 6 packages (graph) and is imported by 3373 packages. Updated 2020-12-04. Refresh now. Tools for package owners.