Versions in this module Expand all Collapse all v1 v1.0.1 Jun 29, 2023 Changes in this version + func Decode(r io.Reader) (image.Image, error) + func DecodeConfig(r io.Reader) (image.Config, error) + func Encode(w io.Writer, m image.Image) error + type CompressionLevel int + const BestCompression + const BestSpeed + const DefaultCompression + const NoCompression + type Encoder struct + BufferPool EncoderBufferPool + CompressionLevel CompressionLevel + func (enc *Encoder) Encode(w io.Writer, m image.Image) error + type EncoderBuffer encoder + type EncoderBufferPool interface + Get func() *EncoderBuffer + Put func(*EncoderBuffer) + type FormatError string + func (e FormatError) Error() string + type UnsupportedError string + func (e UnsupportedError) Error() string