summaryrefslogtreecommitdiff
path: root/inc/image.php
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-08-04 16:32:36 -0400
committerMichael Foster <savetheinternet@tinyboard.org>2013-08-04 16:32:36 -0400
commitacfda35648b5a3eac5607084b781c0ced8e0bc53 (patch)
tree10a09d61e536b83ecb757866f0febc04abf61fa2 /inc/image.php
parenta3cf56a7688d9f5063ac06e5bf8afac0a693f2f0 (diff)
gifsicle: redirect stdout to /dev/null but keep stderr going to stdout
Diffstat (limited to 'inc/image.php')
-rw-r--r--inc/image.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/image.php b/inc/image.php
index b3c0e6b5..920cf8f9 100644
--- a/inc/image.php
+++ b/inc/image.php
@@ -321,8 +321,8 @@ class ImageConvert extends ImageBase {
if ($this->format == 'gif' && ($config['thumb_ext'] == 'gif' || $config['thumb_ext'] == '') && $config['thumb_keep_animation_frames'] > 1) {
if ($this->gifsicle) {
if (($error = shell_exec_error("gifsicle -w --unoptimize -O2 --resize {$this->width}x{$this->height} < " .
- escapeshellarg($this->src . '') . " \"#0-{$config['thumb_keep_animation_frames']}\" >/dev/null -o " .
- escapeshellarg($this->temp))) || !file_exists($this->temp))
+ escapeshellarg($this->src . '') . " \"#0-{$config['thumb_keep_animation_frames']}\" -o " .
+ escapeshellarg($this->temp), true)) || !file_exists($this->temp))
error('Failed to resize image!', null, $error);
} else {
if ($config['convert_manual_orient'] && ($this->format == 'jpg' || $this->format == 'jpeg'))