From ceba6648aaeec8a258f1cd40df04de3b9c548da6 Mon Sep 17 00:00:00 2001 From: discomrade Date: Sun, 27 Jun 2021 23:41:47 -0200 Subject: [PATCH] Fix thumb_ext being ignored --- inc/image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/image.php b/inc/image.php index 34283b80..20fcfdcb 100644 --- a/inc/image.php +++ b/inc/image.php @@ -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'];