ril 0.10.3

Rust Imaging Library: A performant and high-level image processing crate for Rust
Documentation
1
2
3
4
5
6
7
8
9
use ril::prelude::*;

#[test]
fn test_jpeg() -> ril::Result<()> {
    let image = Image::<Rgb>::open("tests/sample.jpg")?;
    assert_eq!(image.dimensions(), (1024, 1024));

    image.save_inferred("tests/out/jpg_encode_output.jpg")
}