Skip to content

darshanparajuli/giffy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

giffy

Build Status crates.io

A simple GIF decoder written in Rust.

Usage

use giffy;
use std::fs::File;

let mut src = File::open("<gif path>").expect("File not found");
match giffy::load(&mut src) {
    Ok(gif) => {
        for frame in gif.image_frames {
            // do something with the frame
        }
    }

    Err(e) => {
        eprintln!("Error: {}", e);
    }
}

Try it

cargo run --example example <GIF file path> <output folder path>

This example splits the <GIF file path> into individual images and saves it in the <output folder path>.

Disclaimer

At this time, this decoder is meant to be for educational/learning purposes only.

About

A simple GIF decoder written in Rust.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages