An image handling library.
Add the following to the Cargo.toml
in your project:
toml
[dependencies]
picto = "0.2"
| Format | Decoding | Encoding | |--------|----------|----------| | PNG | ✔ | ✔ | | JPEG | ✔ | ✘ | | GIF | ✔ | ✔ | | BMP | ✔ | ✔ | | TGA | ✔ | ✔ | | XYZ | ✔ | ✘ |
The following example turns an image to gray scale (maintaining the alpha), then upscales it, and blurs it.
```rust extern crate picto; use picto::{read, write}; use picto::color::{Rgba, Lumaa}; use picto::processing::prelude::*;
use std::env;
fn main() {
write::topath(env::args().nth(2).unwrap(),
&read::frompath::