From 01bf610061e53c78348038e0ec7c0ff627ed924c Mon Sep 17 00:00:00 2001 From: kolpakov-p Date: Wed, 11 Nov 2020 17:47:03 +0400 Subject: [PATCH] Add jfif support --- wa-system/image/waImageGd.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wa-system/image/waImageGd.class.php b/wa-system/image/waImageGd.class.php index 373eb13bf..a1e422333 100644 --- a/wa-system/image/waImageGd.class.php +++ b/wa-system/image/waImageGd.class.php @@ -202,6 +202,7 @@ protected function _save_function($extension, & $quality) { switch (strtolower($extension)) { case 'jpg': + case 'jfif': case 'jpeg': $save = 'imagejpeg'; $type = IMAGETYPE_JPEG; @@ -513,4 +514,4 @@ function imagestring_rotate($dst_im, $font, $angle, $dst_x, $dst_y, $text, $r, $ imagecopy($dst_im, $png, $dst_x, $dst_y, 0, 0, $height, $width); imagedestroy($png); -} \ No newline at end of file +}