Release 0.1.22

- Fix panic on jpeg without frames.

sha256sum:
229d53d58899083193af11e15917b5640cd40b29ff475a1fe4ef725deb02d0f2  target/package/jpeg-decoder-0.1.22.crate
Update meta data for 0.1.22
2 files changed
tree: 0e656b3b20b231c27c4d30a4ebe1365712ad5362
  1. .github/
  2. .gitignore
  3. CHANGELOG.md
  4. Cargo.toml
  5. LICENSE-APACHE
  6. LICENSE-MIT
  7. README.md
  8. appveyor.yml
  9. benches/
  10. examples/
  11. fuzz-afl/
  12. fuzz/
  13. src/
  14. tests/
README.md

jpeg-decoder

Rust CI AppVeyor Build Status Crates.io

A Rust library for decoding JPEGs.

Documentation

Example

Cargo.toml:

[dependencies]
jpeg-decoder = "0.1"

main.rs:

extern crate jpeg_decoder as jpeg;

use std::fs::File;
use std::io::BufReader;

fn main() {
    let file = File::open("hello_world.jpg").expect("failed to open file");
    let mut decoder = jpeg::Decoder::new(BufReader::new(file));
    let pixels = decoder.decode().expect("failed to decode image");
    let metadata = decoder.info().unwrap();
}

Requirements

This crate compiles only with rust >= 1.34.