diff options
| author | czaks <marcin@6irc.net> | 2013-08-04 15:29:18 -0400 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-04 16:27:58 -0400 |
| commit | a3cf56a7688d9f5063ac06e5bf8afac0a693f2f0 (patch) | |
| tree | 9e6ebf3193bedc258f94b4c6337669eaacde93db /inc/image.php | |
| parent | b7070aeac68c18e96c29babbb8d60c8e8ff1c659 (diff) | |
gifsicle: make it finally work
Diffstat (limited to 'inc/image.php')
| -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 23558386..b3c0e6b5 100644 --- a/inc/image.php +++ b/inc/image.php @@ -321,7 +321,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 -w --unoptimize -O2 --resize {$this->width}x{$this->height} < " . - escapeshellarg($this->src . '') . " \"#0-{$config['thumb_keep_animation_frames']}\" > " . + escapeshellarg($this->src . '') . " \"#0-{$config['thumb_keep_animation_frames']}\" >/dev/null -o " . escapeshellarg($this->temp))) || !file_exists($this->temp)) error('Failed to resize image!', null, $error); } else { |
