pub struct Encoder<'a> { /* private fields */ }
Expand description
An encoder for WebP images. It uses the default configuration of libwebp.
Implementations
Creates a new encoder from the given image data. The image data must be in the pixel layout of the color parameter.
Creates a new encoder from the given image.
Creates a new encoder from the given image data in the RGB pixel layout.
Creates a new encoder from the given image data in the RGBA pixel layout.
Encode the image with the given quality. The image quality must be between 0.0 and 100.0 inclusive for minimal and maximal quality respectively.
Encode the image losslessly.