mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-12-01 18:47:20 +01:00
gifsicle: make it finally work
This commit is contained in:
parent
f3f7093d12
commit
4046e46755
@ -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->format == 'gif' && ($config['thumb_ext'] == 'gif' || $config['thumb_ext'] == '') && $config['thumb_keep_animation_frames'] > 1) {
|
||||||
if ($this->gifsicle) {
|
if ($this->gifsicle) {
|
||||||
if (($error = shell_exec_error("gifsicle -w --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->src . '') . " \"#0-{$config['thumb_keep_animation_frames']}\" >/dev/null -o " .
|
||||||
escapeshellarg($this->temp))) || !file_exists($this->temp))
|
escapeshellarg($this->temp))) || !file_exists($this->temp))
|
||||||
error('Failed to resize image!', null, $error);
|
error('Failed to resize image!', null, $error);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user