summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorMarcin Łabanowski <marcin@6irc.net>2012-12-24 05:42:53 +0100
committerMarcin Łabanowski <marcin@6irc.net>2012-12-24 05:42:53 +0100
commit8daab99322795d15d034995cd624460b6664f36e (patch)
tree74334ce332ab02909466050a7d011324d2f0e422 /inc
parent5cea5ca16e93a5867236e2af4d6ff6e89234a8a5 (diff)
convert+gifsicle: fix previous commit
Diffstat (limited to 'inc')
-rw-r--r--inc/image.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/image.php b/inc/image.php
index bf13d1d5..c2175718 100644
--- a/inc/image.php
+++ b/inc/image.php
@@ -277,8 +277,8 @@ 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 (shell_exec("gifsicle --unoptimize -O2 --resize {$this->width}x{$this->height} " .
- escapeshellarg($this->src . '') . " " . escapeshellarg($this->temp)) || !file_exists($this->temp))
+ if (shell_exec("gifsicle --unoptimize -O2 --resize {$this->width}x{$this->height} < " .
+ escapeshellarg($this->src . '') . " > " . escapeshellarg($this->temp)) || !file_exists($this->temp))
error('Failed to resize image!');
}
else {