diff --git a/inc/image.php b/inc/image.php index bacfbed9..f4fb01a3 100644 --- a/inc/image.php +++ b/inc/image.php @@ -155,7 +155,7 @@ } } public function to($src) { - if(preg_match('/\.gif$/', $src)) + if(preg_match('/\.gif$/i', $src)) $this->image->writeImages($src, true); else $this->image->writeImage($src); @@ -172,7 +172,7 @@ public function resize() { global $config; - if(preg_match('/\.gif$/', $src)) { + if(preg_match('/\.gif$/i', $src)) { $this->image = new Imagick(); $this->image->setFormat('gif');