From 697e41e913a3d8d3b1ae8d227e784f6e72cb021c Mon Sep 17 00:00:00 2001
From: Fluffy-Bean <michal-gdula@protonmail.com>
Date: Fri, 22 Jul 2022 18:34:22 +0100
Subject: [PATCH] Nevermind lol

---
 upload.php | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/upload.php b/upload.php
index d8f7b9b..ceabbd2 100644
--- a/upload.php
+++ b/upload.php
@@ -73,16 +73,8 @@
         // If image is gif
         if ($image_format == 'GIF') {
           $image_thumbnail = $image_thumbnail->coalesceImages();
-          foreach ($image_thumbnail as $frame) {
-            $frame->thumbnailImage(300, null);
-            $frame->setImagePage(300, null, 0, 0);
-          }
-          // Put image back together
-          $image_thumbnail = $image_thumbnail->deconstructImages();
-        }else{
-          // Image not gif
-          $image_thumbnail->resizeImage(300,null,null,1,null);
         }
+        $image_thumbnail->resizeImage(300,null,null,1,null);
         // Save image
         $image_thumbnail->writeImage("images/thumbnails/".$image_basename);