From 1de64a3818875947f7f1044b1d4cfdf271b04fd3 Mon Sep 17 00:00:00 2001 From: Genny Date: Sun, 21 Nov 2021 18:35:57 -0600 Subject: Bring gifprobe into this repository --- examples/read.rs | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 examples/read.rs (limited to 'examples/read.rs') diff --git a/examples/read.rs b/examples/read.rs deleted file mode 100644 index 3c40bfe..0000000 --- a/examples/read.rs +++ /dev/null @@ -1,22 +0,0 @@ -use gifed::{ - reader::{self, GifReader}, - writer::ImageBuilder, - Gif, -}; - -fn main() { - let reader = GifReader::file("examples/simulation.gif").unwrap(); - let first = reader.images().next().unwrap(); - - Gif::builder(first.width(), first.height()) - .palette(first.palette().clone()) - .image( - ImageBuilder::new(first.width(), first.height()) - .transparent_index(first.transparent_index()) - .indicies(first.indicies()), - ) - .build() - .unwrap() - .save("first.gif") - .unwrap(); -} -- cgit 1.4.1-3-g733a5