Versions in this module Expand all Collapse all v0 v0.2.1 Oct 25, 2026 v0.2.0 Oct 23, 2026 Changes in this version + func EncodeLossy(w io.Writer, m image.Image, quality int) error + func EncodeLossyToBytes(m image.Image, quality int) ([]byte, error) v0.1.0 Oct 23, 2026 Changes in this version + var ErrEmpty = errors.New("webp: the image has no pixels") + var ErrTooLarge = errors.New(...) + func Encode(w io.Writer, m image.Image) error + func EncodeToBytes(m image.Image) ([]byte, error)