From 81c9b612bc68d32ef004e57f3c0ea1e8b96c0d1e Mon Sep 17 00:00:00 2001 From: Michael Save Date: Wed, 14 Mar 2012 22:11:07 +1100 Subject: [PATCH] Don't animate thumbnails when impossible. --- inc/image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/image.php b/inc/image.php index f4fb01a3..c6a9e0b0 100644 --- a/inc/image.php +++ b/inc/image.php @@ -172,7 +172,7 @@ public function resize() { global $config; - if(preg_match('/\.gif$/i', $src)) { + if(preg_match('/\.gif$/i', $this->src) && $config['thumb_ext'] == 'gif') { $this->image = new Imagick(); $this->image->setFormat('gif');