diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-03-14 22:11:07 +1100 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-03-14 22:11:07 +1100 |
| commit | 81c9b612bc68d32ef004e57f3c0ea1e8b96c0d1e (patch) | |
| tree | 480ff7ac7af0bf9835efc464d62d80c19438650a /inc/image.php | |
| parent | 2a760de2896a02af98caa013537166b5d3fcc717 (diff) | |
Don't animate thumbnails when impossible.
Diffstat (limited to 'inc/image.php')
| -rw-r--r-- | inc/image.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/image.php b/inc/image.php index f4fb01a3..c6a9e0b0 100644 --- a/inc/image.php +++ b/inc/image.php @@ -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'); |
