]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
2-frame GIF animations weren't recognised as animated
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 4 May 2016 09:57:55 +0000 (11:57 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 4 May 2016 09:57:55 +0000 (11:57 +0200)
lib/imagefile.php

index 156e3c6fd2d18af4ec90c5efc5334ec9722d468a..b0cd13089f64e1579d456473b6601a09801f31cb 100644 (file)
@@ -548,7 +548,7 @@ class ImageFile
         }
 
         fclose($fh);
-        return $count > 1;
+        return $count >= 1; // number of animated frames apart from the original image
     }
 
     public function getFileThumbnail($width, $height, $crop, $upscale=false)