Browse Source

fix gifsicle issue connected with frame limit

pull/40/head
czaks 11 years ago
committed by Michael Foster
parent
commit
76101cad51
  1. 2
      inc/image.php

2
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);

Loading…
Cancel
Save