#gif #parser #file #io

gif_parser

Simple library for parsing GIF

3 unstable releases

0.2.1 Apr 17, 2023
0.2.0 Apr 17, 2023
0.1.0 Mar 26, 2023

#456 in Graphics APIs

45 downloads per month

MIT license

54KB
621 lines

GIF Parser library

Simple library to parse GIF.

Example

use std::fs::File;
use std::io::BufReader;

fn main() {
    let filename = "tests/data/nayn.gif"
    let file = File::open(filename).unwrap();
    let reader = BufReader::new(file);

    let parser = GifParser::new(reader);

    for token in parser {
        let token = token.unwrap();
        println!("TOKEN: {token:?}");
    }
}

Dependencies

~0.4–0.8MB
~19K SLoC