Don't animate thumbnails when impossible.
This commit is contained in:
parent
2a760de289
commit
81c9b612bc
@ -172,7 +172,7 @@
|
||||
public function resize() {
|
||||
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->setFormat('gif');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user