17 releases

0.1.16 Aug 25, 2019
0.1.15 Jun 10, 2018
0.1.14 Feb 15, 2018
0.1.13 Jun 14, 2017
0.1.2 Mar 8, 2016

#4 in Images

Download history 8692/week @ 2019-06-13 8914/week @ 2019-06-20 7930/week @ 2019-06-27 9595/week @ 2019-07-04 7715/week @ 2019-07-11 8294/week @ 2019-07-18 8795/week @ 2019-07-25 8813/week @ 2019-08-01 8532/week @ 2019-08-08 9113/week @ 2019-08-15 14608/week @ 2019-08-22 13366/week @ 2019-08-29 13687/week @ 2019-09-05 12330/week @ 2019-09-12 11493/week @ 2019-09-19

37,752 downloads per month
Used in 43 crates (5 directly)

MIT/Apache

105KB
2K SLoC

jpeg-decoder

Travis Build Status 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.28.

Dependencies

~1.5MB
~25K SLoC