forked from GithubBackups/vichan
Merge pull request #440 from discomrade/patch-1
Fix custom thumb_ext when using ImageMagick convert
This commit is contained in:
commit
1d8a577029
@ -311,8 +311,8 @@ class ImageConvert extends ImageBase {
|
|||||||
$this->destroy();
|
$this->destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->temp = tempnam($config['tmp'], 'convert');
|
$this->temp = tempnam($config['tmp'], 'convert') . ($config['thumb_ext'] == '' ? '' : '.' . $config['thumb_ext']);
|
||||||
|
|
||||||
$config['thumb_keep_animation_frames'] = (int)$config['thumb_keep_animation_frames'];
|
$config['thumb_keep_animation_frames'] = (int)$config['thumb_keep_animation_frames'];
|
||||||
|
|
||||||
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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user