detect lowercase GIFs
This commit is contained in:
parent
b9a5c21db2
commit
b082c8c811
@ -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…
Reference in New Issue
Block a user