Package gif implements a GIF image decoder and encoder.
The GIF specification is at http://www.w3.org/Graphics/GIF/spec-gif89a.txt.
Decode reads a GIF image from r and returns the first embedded image as an image.Image.
DecodeAll reads a GIF image from r and returns the sequential frames and timing information.
DecodeConfig returns the global color model and dimensions of a GIF image without decoding the entire image.
Encode writes the Image m to w in GIF format.
EncodeAll writes the images in g to w in GIF format with the given loop count and delay between frames.
MedianCutQuantizer constructs a palette with a maximum of NumColor colors by iteratively splitting clusters of color points mapped on a three-dimensional (RGB) Euclidian space. Once the number of clusters is within the specified bounds, the resulting color is computed by averaging those within each grouping.
Options are the encoding parameters.
A Quantizer interface is used by an encoder to construct an image with a restricted color palette.