diff options
| author | czaks <marcin@6irc.net> | 2013-08-04 04:46:30 -0400 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-04 04:49:47 -0400 |
| commit | 76101cad516915c008ee5ca5b6d6c45dc54a7e03 (patch) | |
| tree | 0b1d462dae838edeb53e3993cca73e065333942f | |
| parent | 6409ac61639e588f62904d54a4fb37158d31a5f4 (diff) | |
fix gifsicle issue connected with frame limit
| -rw-r--r-- | inc/image.php | 2 |
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); |
