Browse Source

detect lowercase GIFs

pull/40/head
Michael Save 12 years ago
parent
commit
b082c8c811
  1. 4
      inc/image.php

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

Loading…
Cancel
Save