19 releases

new 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

#6 in Images

Download history 13404/week @ 2019-08-27 13957/week @ 2019-09-03 12750/week @ 2019-09-10 11293/week @ 2019-09-17 12748/week @ 2019-09-24 12985/week @ 2019-10-01 11195/week @ 2019-10-08 10470/week @ 2019-10-15 11825/week @ 2019-10-22 11379/week @ 2019-10-29 12264/week @ 2019-11-05 12440/week @ 2019-11-12 14762/week @ 2019-11-19 14155/week @ 2019-11-26 14308/week @ 2019-12-03

53,315 downloads per month
Used in 49 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