Release 0.1.19

- Fix decoding returning too much image data
- Fix recognizing padding in marker segments
- Several decode performance improvements
- Remove use of deprecated `Error::description`

sha256sum:
5b47b4c4e017b01abdc5bcc126d2d1002e5a75bbe3ce73f9f4f311a916363704  target/package/jpeg-decoder-0.1.19.crate
Release notes for 0.1.19
2 files changed
tree: c4bc0a6c556c6e3c4a66c155e5f474cf1f31ad01
  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. src/
  12. 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.