Versions in this module Expand all Collapse all v0 v0.2.0 Apr 15, 2024 v0.1.0 Oct 27, 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 + func EncodeWithMeta(w io.Writer, m *ImageWithMeta) 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 + func (enc *Encoder) EncodeWithMeta(w io.Writer, m *ImageWithMeta) error + type EncoderBuffer encoder + type EncoderBufferPool interface + Get func() *EncoderBuffer + Put func(*EncoderBuffer) + type FormatError string + func (e FormatError) Error() string + type ImageWithMeta struct + Gamma float64 + ICCProfile *icc.Profile + ICCProfileName string + SRGB *SRGB + func DecodeWithMeta(r io.Reader) (*ImageWithMeta, error) + type RenderingIntent int + const RenderingIntentAbsolute + const RenderingIntentPerceptual + const RenderingIntentRelative + const RenderingIntentSaturation + func (ri RenderingIntent) String() string + type SRGB struct + RenderingIntent RenderingIntent + type UnsupportedError string + func (e UnsupportedError) Error() string