Skip to main content

Crate webp_rust

Crate webp_rust 

Source
Expand description

Pure Rust WebP decode and still-image encode helpers.

The top-level API is intentionally small:

Lower-level codec and container entry points remain available under decoder and encoder.

Re-exports§

pub use decoder::DecoderError;
pub use encoder::EncoderError;
pub use encoder::LosslessEncodingOptions;
pub use encoder::LossyEncodingOptions;

Modules§

decoder
Lower-level WebP parsing and decoding APIs.
encoder
Pure Rust WebP encoder helpers.

Structs§

ImageBuffer
RGBA pixel buffer for a decoded or to-be-encoded still image.

Enums§

WebpEncoding
Top-level still-image WebP compression mode.

Functions§

decode
Decodes a still WebP image from memory into an RGBA buffer.
decode_file
Reads a still WebP image from disk and decodes it to RGBA.
encode
Encodes an image as a still WebP container.
encode_lossless
Encodes an image as a still lossless WebP container.
encode_lossy
Encodes an image as a still lossy WebP container.
image_from_bytes
Compatibility alias for decode.
image_from_file
Compatibility alias for decode_file.