From 3a6733dc982c879ee728f2f001f13ab69e2e0ab9 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Wed, 4 May 2016 11:57:55 +0200 Subject: [PATCH] 2-frame GIF animations weren't recognised as animated --- lib/imagefile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/imagefile.php b/lib/imagefile.php index 156e3c6fd2..b0cd13089f 100644 --- a/lib/imagefile.php +++ b/lib/imagefile.php @@ -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)