14 releases

0.3.1 Aug 29, 2025
0.3.0 Apr 18, 2024
0.2.7 Apr 2, 2024
0.2.6 Sep 20, 2023
0.0.0 Aug 29, 2019

#20 in Images

Download history 27084/week @ 2025-09-23 22906/week @ 2025-09-30 24249/week @ 2025-10-07 29598/week @ 2025-10-14 30048/week @ 2025-10-21 28528/week @ 2025-10-28 30201/week @ 2025-11-04 31785/week @ 2025-11-11 34592/week @ 2025-11-18 39584/week @ 2025-11-25 39979/week @ 2025-12-02 35460/week @ 2025-12-09 31590/week @ 2025-12-16 19790/week @ 2025-12-23 20933/week @ 2025-12-30 41330/week @ 2026-01-06

120,487 downloads per month
Used in 103 crates (59 directly)

MIT/Apache

2MB
1.5K SLoC

Build Status Crate API Crates.io

webp

A WebP conversion library

Documentation:

Usage

Add this to your Cargo.toml:

[dependencies]
webp = "0.2"

Examples

An example for converting an image between JPEG and WebP formats is provided in the examples directory. It can be run using

cargo run --release --example convert

License

webp is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE and LICENSE-MIT, and COPYRIGHT for details.

The photo lake.jpg included in the assets/ directory is licensed under CC0/"Public Domain Dedication".

Dependencies