Fix thumb_ext being ignored

This commit is contained in:
discomrade 2021-06-27 23:41:47 -02:00 committed by towards-a-new-leftypol
parent 507c70a0dc
commit ceba6648aa
1 changed files with 1 additions and 1 deletions

View File

@ -312,7 +312,7 @@ 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'];