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) { public function to($src) {
if(preg_match('/\.gif$/', $src)) if(preg_match('/\.gif$/i', $src))
$this->image->writeImages($src, true); $this->image->writeImages($src, true);
else else
$this->image->writeImage($src); $this->image->writeImage($src);
@ -172,7 +172,7 @@
public function resize() { public function resize() {
global $config; global $config;
if(preg_match('/\.gif$/', $src)) { if(preg_match('/\.gif$/i', $src)) {
$this->image = new Imagick(); $this->image = new Imagick();
$this->image->setFormat('gif'); $this->image->setFormat('gif');

Loading…
Cancel
Save