summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2013-08-06 19:40:17 -0400
committerMichael Foster <savetheinternet@tinyboard.org>2013-08-11 21:04:20 +1000
commitc672b700b0bd2dcfa91ed0083014d470bdc3e34d (patch)
tree6ec632594e08ac01cb2f207a2d849dba82dfa866
parent8b26201a0543a3eb35208d38f04b46231abda5c5 (diff)
gifsicle: temporary fix; STI: gifsicle REALLY sends that to stderr for every gif shorter than 50 frames
-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'))