about summary refs log tree commit diff
path: root/examples/read.rs
diff options
context:
space:
mode:
authorGenny <gen@nyble.dev>2021-11-21 18:35:57 -0600
committerGenny <gen@nyble.dev>2021-11-21 18:35:57 -0600
commit1de64a3818875947f7f1044b1d4cfdf271b04fd3 (patch)
tree3a5bfbb237d67832dfa1beeb3d28566173484b63 /examples/read.rs
parentf35e18cb0531e7d6a3544560746d592aa47ed555 (diff)
downloadgifed-1de64a3818875947f7f1044b1d4cfdf271b04fd3.tar.gz
gifed-1de64a3818875947f7f1044b1d4cfdf271b04fd3.zip
Bring gifprobe into this repository
Diffstat (limited to 'examples/read.rs')
-rw-r--r--examples/read.rs22
1 files changed, 0 insertions, 22 deletions
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();
-}