1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-24 07:30:10 +01:00

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() {
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');