19 releases

0.1.18 Dec 10, 2019
0.1.16 Aug 25, 2019
0.1.15 Jun 10, 2018
0.1.14 Feb 15, 2018
0.1.2 Mar 8, 2016

#5 in Images

Download history 11784/week @ 2019-10-04 11685/week @ 2019-10-11 9974/week @ 2019-10-18 12909/week @ 2019-10-25 10900/week @ 2019-11-01 12464/week @ 2019-11-08 13915/week @ 2019-11-15 13604/week @ 2019-11-22 15513/week @ 2019-11-29 15152/week @ 2019-12-06 16840/week @ 2019-12-13 13156/week @ 2019-12-20 15575/week @ 2019-12-27 18444/week @ 2020-01-03 17074/week @ 2020-01-10

56,522 downloads per month
Used in 54 crates (5 directly)

MIT/Apache

175KB
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.34.

Dependencies

~1.5MB
~24K SLoC