summaryrefslogtreecommitdiff
path: root/inc/image.php
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2013-08-06 19:40:17 -0400
committerczaks <marcin@6irc.net>2013-08-06 19:40:17 -0400
commit73f53d35292270808e69eb98f8662eb675e3116b (patch)
tree06146f087be1b995455190f69315147eb08d86b6 /inc/image.php
parent16ae5177f7bd33ae3127a28a368a08e87cc49d44 (diff)
gifsicle: temporary fix; STI: gifsicle REALLY sends that to stderr for every gif shorter than 50 frames
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 9c4bbef4..8088999d 100644
--- a/inc/image.php
+++ b/inc/image.php
@@ -320,9 +320,9 @@ 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} < " .
+ if (($error = shell_exec("gifsicle -w --unoptimize -O2 --resize {$this->width}x{$this->height} < " .
escapeshellarg($this->src . '') . " \"#0-{$config['thumb_keep_animation_frames']}\" -o " .
- escapeshellarg($this->temp), true)) || !file_exists($this->temp))
+ escapeshellarg($this->temp))) || !file_exists($this->temp))
error('Failed to resize image!', null, $error);
} else {
if ($config['convert_manual_orient'] && ($this->format == 'jpg' || $this->format == 'jpeg'))