#gif #image

bin+lib gift

A library for reading and writing GIF images

5 unstable releases

✓ Uses Rust 2018 edition

0.3.1 May 29, 2019
0.3.0 May 25, 2019
0.2.0 May 1, 2019
0.1.1 Apr 28, 2019
0.1.0 Apr 26, 2019

#314 in Encoding

Download history 15/week @ 2019-11-01 1/week @ 2019-11-08 13/week @ 2019-11-15 6/week @ 2019-11-22 10/week @ 2019-11-29 192/week @ 2019-12-06 5/week @ 2019-12-27 55/week @ 2020-01-10 35/week @ 2020-01-17 1/week @ 2020-01-24 5/week @ 2020-02-07

99 downloads per month

MIT/Apache

84KB
2K SLoC

GIFt

A Rust library for encoding and decoding GIF images.

Decoding example

// ... open a File as "gif"
let mut frame_dec = gift::Decoder::new(gif).into_frame_decoder();
let preamble = frame_dec.preamble()?;
println!("preamble: {:?}", preamble);
for frame in frame_dec {
    println!("frame: {:?}", frame?);
}

TODO

  • Interlaced images

lib.rs:

GIFt

A library for encoding and decoding GIF images and animations.

Dependencies

~225KB