Skip to content

JPEG decoder written in Rust -- currently in maintenance mode

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

image-rs/jpeg-decoder

Folders and files

NameName
Last commit message
Last commit date
Aug 24, 2024
Sep 25, 2023
Apr 26, 2023
Oct 4, 2023
Jul 4, 2020
Oct 29, 2023
Oct 29, 2023
Feb 10, 2016
Jan 13, 2024
Aug 24, 2024
Jan 8, 2017
Jan 8, 2017
Nov 15, 2023
Nov 26, 2019
Oct 17, 2022

Repository files navigation

WARNING: This crate is in maintenance mode as image-rs seeks to move over to the zune-jpeg crate. However, since other Rust JPEG crates do not support lossless mode, we will continue to welcome PRs related to that functionality.


jpeg-decoder

Rust CI AppVeyor Build Status crates.io

A Rust library for decoding JPEGs.

Documentation

Example

Cargo.toml:

[dependencies]
jpeg-decoder = "0.3"

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 with Rust >= 1.61. Minimum supported Rust version:

  • All releases 0.1.* compile with Rust >= 1.36.
  • All releases 0.2.* compile with Rust >= 1.48.

About

JPEG decoder written in Rust -- currently in maintenance mode

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages