apng

apng is animation png encoder for rust, and made in pure rust.

animation rust logo

Example usage

```rust fn main() { let files = vec![ "sample/rustlogo1.png", "sample/rustlogo3.png", "sample/rustlogo3.png", "sample/rustlogo4.png", "sample/rustlogo5.png", "sample/rustlogo6.png", ];

let mut pngs: Vec<PNGImage> = Vec::new();
for f in files.iter() {
    pngs.push(apng::load_png(f).unwrap());
}

let path = Path::new(r"sample/out.png");
let mut out = BufWriter::new(File::create(path).unwrap());

let mut apng = APNG { images: pngs };
let config = apng.create_config(0).unwrap();
let mut encoder = Encoder::new(&mut out, config).unwrap();
let frame = Frame {
    delay_num: Some(1),
    delay_den: Some(2),
    ..Default::default()
};
let err = encoder.encode_all(apng, Some(&frame));
println!("{:?}", err)

} ```

License

here