summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2013-08-04 04:46:30 -0400
committerczaks <marcin@6irc.net>2013-08-04 04:46:30 -0400
commit3e4545d1b8218db2814e42c04e0208ee8752eddc (patch)
tree44c6a74e8e59b0d1e039a8d6267cc33b88b33452
parent8a89893b0210217264e1041408e50d8caffa846a (diff)
fix gifsicle issue connected with frame limit
-rw-r--r--inc/image.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/image.php b/inc/image.php
index 193e588e..1c865218 100644
--- a/inc/image.php
+++ b/inc/image.php
@@ -320,7 +320,7 @@ 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 --unoptimize -O2 --resize {$this->width}x{$this->height} < " .
+ if (($error = shell_exec_error("gifsicle -w --unoptimize -O2 --resize {$this->width}x{$this->height} < " .
escapeshellarg($this->src . '') . " \"#0-{$config['thumb_keep_animation_frames']}\" > " .
escapeshellarg($this->temp))) || !file_exists($this->temp))
error('Failed to resize image!', null, $error);