Don't animate thumbnails when impossible.

This commit is contained in:
Michael Save 2012-03-14 22:11:07 +11:00
parent 2a760de289
commit 81c9b612bc

View File

@ -172,7 +172,7 @@
public function resize() { public function resize() {
global $config; global $config;
if(preg_match('/\.gif$/i', $src)) { if(preg_match('/\.gif$/i', $this->src) && $config['thumb_ext'] == 'gif') {
$this->image = new Imagick(); $this->image = new Imagick();
$this->image->setFormat('gif'); $this->image->setFormat('gif');