This library is compatible with Rust 1.45 or later.
This library offers convenient reading and writing of well-compressed JPEG images using a safe Rust interface.
The interface is still being developed, so it has rough edges and may change.
```rust let d = mozjpeg::Decompress::withmarkers(mozjpeg::ALLMARKERS) .from_path("tests/test.jpg")?;
d.width(); d.height(); d.colorspace() == mozjpeg::ColorSpace::JCSYCbCr; for marker in d.markers() {}
let image = d.rgb().unwrap(); image.width(); image.height(); image.colorspace() == mozjpeg::ColorSpace::JCSRGB; ```