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');