Documentation ¶
Overview ¶
Package jpeg implements a JPEG image decoder and encoder.
JPEG is defined in ITU-T T.81: http://www.w3.org/Graphics/JPEG/itu-t81.pdf.
Index ¶
Constants ¶
View Source
const DefaultQuality = 75
DefaultQuality is the default quality encoding parameter.
Variables ¶
This section is empty.
Functions ¶
func DecodeConfig ¶
DecodeConfig returns the color model and dimensions of a JPEG image without decoding the entire image.
Types ¶
type FormatError ¶
type FormatError string
A FormatError reports that the input is not a valid JPEG.
func (FormatError) String ¶
func (e FormatError) String() string
type Options ¶
type Options struct {
Quality int
}
Options are the encoding parameters. Quality ranges from 1 to 100 inclusive, higher is better.
type Reader ¶
If the passed in io.Reader does not also have ReadByte, then Decode will introduce its own buffering.
type UnsupportedError ¶
type UnsupportedError string
An UnsupportedError reports that the input uses a valid but unimplemented JPEG feature.
func (UnsupportedError) String ¶
func (e UnsupportedError) String() string
Click to show internal directories.
Click to hide internal directories.