File: README.md

package info (click to toggle)
rust-webp 0.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,996 kB
  • sloc: makefile: 2
file content (40 lines) | stat: -rw-r--r-- 1,083 bytes parent folder | download
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
![Build Status](https://github.com/jaredforth/webp/actions/workflows/rust.yml/badge.svg)
[![Crate](https://img.shields.io/crates/v/webp.svg)](https://crates.io/crates/webp)
[![API](https://docs.rs/webp/badge.svg)](https://docs.rs/webp)
![Crates.io](https://img.shields.io/crates/d/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".