From e2db451c40e926676e7fb25e78fe6598b6452301 Mon Sep 17 00:00:00 2001 From: ComandPromt Date: Mon, 7 May 2018 19:25:10 +0200 Subject: [PATCH 1/2] Update index.php --- test/index.php | 43 ++++++++++++++++++++++++++++++++++--------- 1 file changed, 34 insertions(+), 9 deletions(-) diff --git a/test/index.php b/test/index.php index 94b119f..49bc1df 100644 --- a/test/index.php +++ b/test/index.php @@ -1,15 +1,40 @@ - create("img/", array(300, 500)) // first 3s, then 5s for all the others + // Load all images from "./img/", in ascending order, + // apply the given delays, and save the result... + + $anim -> create("img/", array(30)) // first 3s, then 5s for all the others -> save("anim.gif"); + +} +else{ + print "Folder empty!"; +} ?> From 129905ff8937ea3dcab1dfc3829192d3fa63d613 Mon Sep 17 00:00:00 2001 From: ComandPromt Date: Tue, 12 Feb 2019 09:13:28 +0100 Subject: [PATCH 2/2] Update AnimGif.php --- src/GifCreator/AnimGif.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GifCreator/AnimGif.php b/src/GifCreator/AnimGif.php index 727ac6c..40165bd 100644 --- a/src/GifCreator/AnimGif.php +++ b/src/GifCreator/AnimGif.php @@ -203,7 +203,7 @@ public function create($frames, $durations = self::DEFAULT_DURATION, $loop = 0) } if ($i == 0) { - $this->transparent_color = imagecolortransparent($resourceImg); + $this->transparent_color = -1; } for ($j = (13 + 3 * (2 << (ord($this->frameSources[$i] { 10 }) & 0x07))), $k = TRUE; $k; $j++) {