Documentation ¶
Overview ¶
Package webp implements a decoder and encoder for WEBP images.
WEBP is defined at: https://developers.google.com/speed/webp/docs/riff_container
Index ¶
- Constants
- func Decode(r io.Reader) (m image.Image, err error)
- func DecodeConfig(r io.Reader) (config image.Config, err error)
- func DecodeGray(data []byte) (m *image.Gray, err error)
- func DecodeRGBA(data []byte) (m *image.RGBA, err error)
- func Encode(w io.Writer, m image.Image, opt *Options) (err error)
- func EncodeGray(m *image.Gray, quality float32) (data []byte, err error)
- func EncodeLosslessGray(m *image.Gray) (data []byte, err error)
- func EncodeLosslessRGBA(m *image.RGBA) (data []byte, err error)
- func EncodeRGBA(m *image.RGBA, quality float32) (data []byte, err error)
- func GetInfo(data []byte) (width, height int, hasAlpha bool, err error)
- type Options
Constants ¶
View Source
const DefaulQuality = 90
Variables ¶
This section is empty.
Functions ¶
func DecodeConfig ¶
DecodeConfig returns the color model and dimensions of a WEBP image without decoding the entire image.
Types ¶
Click to show internal directories.
Click to hide internal directories.