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 cf0a326e3d
commit d05d62d599

View File

@ -312,7 +312,7 @@ class ImageConvert extends ImageBase {
$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'];