diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-03-13 03:48:12 +1100 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-03-13 03:48:12 +1100 |
| commit | b082c8c81183b4fce97b634115132c57b57627e6 (patch) | |
| tree | be8bf13dd94c806ec7756104e421ee4623600a38 /inc/image.php | |
| parent | b9a5c21db2604b8d9d704a81e5a3506e674fe23e (diff) | |
detect lowercase GIFs
Diffstat (limited to 'inc/image.php')
| -rw-r--r-- | inc/image.php | 4 |
1 files changed, 2 insertions, 2 deletions
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'); |
