olxgroup-oss / libvips-rust-bindings

Rust bindings for libvips
MIT License
95 stars 41 forks source link

Please add usage examples #61

Open bassco opened 12 months ago

bassco commented 12 months ago

As a potential user of this library, I would like to explore some usage examples that are provided by the package maintainers and contributors.

Cargo provides the functionality to add examples to a library.

An upshot of doing so is that these examples are included when running tests or can be run in isolation too.

Here is an example to transform a jpeg to a png that is described in the current README.md and can be codifed.

cargo run --examples jpeg_to_png