1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|

[](https://crates.io/crates/webp)
[](https://docs.rs/webp)

# webp
A WebP conversion library
Documentation:
- [API Reference](https://docs.rs/webp)
## Usage
Add this to your `Cargo.toml`:
```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
```sh
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](LICENSE-APACHE) and [LICENSE-MIT](LICENSE-MIT), and
[COPYRIGHT](COPYRIGHT) for details.
The photo `lake.jpg` included in the `assets/` directory is licensed under
[CC0](https://creativecommons.org/publicdomain/zero/1.0/)/"Public Domain Dedication".
|