$ exr
v1.74.1Read and write OpenEXR files without any unsafe code
Latest Update Summary
Crate
Name: exr New version: 1.74.0 Release date: 2025-11-11T08:19:00.028751Z
Crate readme
Short description GIF en- and decoder written in Rust.
Long description This library provides all functions necessary to de- and encode GIF files. The high level interface consists of the two types Encoder and Decoder.
Features • Supports encoding and decoding of GIF files • High level interface with Encoder and Decoder types • Color output options for decoding • Infinite repeat setting for encoders
Code Examples Decoding GIF files
use std::fs::File;
let input = File::open("tests/samples/sample_1.gif").unwrap();
let mut options = gif::DecodeOptions::new();
options.set_color_output(gif::ColorOutput::RGBA);
let mut decoder = options.read_info(input).unwrap();
while let Some(frame) = decoder.read_next_frame().unwrap() {
// Process every frame
}
Encoding GIF files
use gif::{Frame, Encoder, Repeat};
use std::fs::File;
use std::borrow::Cow;
let color_map = &[0xFF, 0xFF, 0xFF, 0, 0, 0];
let (width, height) = (6, 6);
let mut image = File::create("target/beacon.gif").unwrap();
let mut encoder = Encoder::new(&mut image, width, height, color_map).unwrap();
encoder.set_repeat(Repeat::Infinite).unwrap();
// Write frames to the encoder
Creating frame from RGB data
let frame = gif::Frame::from_rgb(100, 100, &mut *pixels);
let mut image = File::create("target/indexed_color.gif").unwrap();
let mut encoder = gif::Encoder::new(&mut image, frame.width, frame.height, &[]).unwrap();
encoder.write_frame(&frame).unwrap();
Links • https://docs.rs/gif/
https://api.github.com/repos/johannesvollmer/exrs/releases/261228266
Release info
Release version:
Release description
Code Examples
Patch update: 1.74.0 → 1.74.1
$ DOWNLOADS TREND
$ VERSION HISTORY
$ LINKS
$ INSTALL
cargo add exrOr add to Cargo.toml: exr = "1.74.1"