Documentation ¶
Overview ¶
Package webp is an idiomatic Go wrapper for libwebp codec.
Index ¶
Constants ¶
This section is empty.
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 ¶
type EncodeOption ¶
type EncodeOption func(*Encoder)
EncodeOption configures the encoder.
func Quality ¶
func Quality(q float32) EncodeOption
Quality in the range (0,1]. Quality of 1 implies Lossless.
type Encoder ¶
type Encoder struct { // Quality is in the range (0,1]. Values outside of this // range will be treated as 1. Default 0.9. Quality float32 // Lossless indicates whether to use the lossless compression // strategy. If true, the Quality field is ignored. Lossless bool }
Encoder implements webp encoding of an image.
Click to show internal directories.
Click to hide internal directories.