# README
Copy from https://github.com/golang/go/tree/master/src/image/jpeg @ go1.9.4
Features
- Add
quality
,DecodeWithQuality
method.
# Functions
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.
DecodeWithQuality reads a JPEG image from r and returns it as an image.Image and Quality.
Encode writes the Image m to w in JPEG 4:2:0 baseline format with the given options.
# Constants
DefaultQuality is the default quality encoding parameter.
# Interfaces
Deprecated: Reader is deprecated.
# Type aliases
A FormatError reports that the input is not a valid JPEG.
An UnsupportedError reports that the input uses a valid but unimplemented JPEG feature.