Versions in this module Expand all Collapse all v1 v1.2.0 Aug 9, 2023 v1.1.1 Jul 16, 2023 Changes in this version + type Encoder struct + func NewEncoder(src image.Image, options *Options) (e *Encoder, err error) + func (e *Encoder) Encode(w io.Writer) error + type EncodingPreset int + const PresetDefault + const PresetDrawing + const PresetIcon + const PresetPhoto + const PresetPicture + const PresetText + type ImageHint int + const HintDefault + const HintGraph + const HintLast + const HintPhoto + const HintPicture + type Options struct + AlphaCompression int + AlphaFiltering int + Autofilter bool + EmulateJpegSize bool + Exact int + FilterSharpness int + FilterStrength int + FilterType int + ImageHint ImageHint + Lossless bool + LowMemory bool + Method int + NearLossless int + PartitionLimit int + Partitions int + Pass int + Preprocessing int + Quality float32 + Segments int + ShowCompressed bool + SnsStrength int + TargetPsnr float32 + TargetSize int + ThreadLevel bool + UseDeltaPalette bool + UseSharpYuv bool + func NewLosslessEncoderOptions(preset EncodingPreset, level int) (options *Options, err error) + func NewLossyEncoderOptions(preset EncodingPreset, quality float32) (options *Options, err error) + func (o *Options) GetConfig() (*C.WebPConfig, error)