summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorMichael Save <savetheinternet@tinyboard.org>2012-04-18 00:07:37 +1000
committerMichael Save <savetheinternet@tinyboard.org>2012-05-05 18:08:44 +1000
commitc360c7f673633e0cb532da463988c114ca6f1590 (patch)
tree9170fa00b62b455f99681e00f0e46361205a6f1f /inc
parentb0eda5dcbc05a34ef9139578a5a43494ebdb762b (diff)
Fix animated thumbnails with `convert` and Imagick
Diffstat (limited to 'inc')
-rw-r--r--inc/image.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/image.php b/inc/image.php
index 28242946..7899ba99 100644
--- a/inc/image.php
+++ b/inc/image.php
@@ -267,11 +267,11 @@ class ImageConvert extends ImageBase {
$quality = $config['thumb_quality'] * 10;
if ($this->format == 'gif' && $config['thumb_ext'] == 'gif' && $config['thumb_keep_animation_frames'] > 1) {
- if (shell_exec("convert -background transparent -filter Point -sample {$this->width}x{$this->height} +antialias -quality {$quality} " .
+ if (shell_exec("convert -filter Point -sample {$this->width}x{$this->height} +antialias -quality {$quality} " .
escapeshellarg($this->src . '') . " " . escapeshellarg($this->temp)) || !file_exists($this->temp))
error('Failed to resize image!');
} else {
- if (shell_exec("convert -background transparent -flatten -filter Point -scale {$this->width}x{$this->height} +antialias -quality {$quality} " .
+ if (shell_exec("convert -flatten -filter Point -scale {$this->width}x{$this->height} +antialias -quality {$quality} " .
escapeshellarg($this->src . '[0]') . " " . escapeshellarg($this->temp)) || !file_exists($this->temp))
error('Failed to resize image!');
}