From 84453ed957126f60f2b82ad60fc1f331ee068632 Mon Sep 17 00:00:00 2001 From: 3D-I <eataly3d@gmail.com> Date: Sat, 27 Feb 2021 20:04:41 +0100 Subject: [PATCH] [ticket/16712] Implement thumbnails for WEBP images in attachments PHPBB3-16712 --- phpBB/includes/functions_posting.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index a3b743777f..9772523c53 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -542,6 +542,11 @@ function get_supported_image_types($type = false) case IMAGETYPE_WBMP: $new_type = ($format & IMG_WBMP) ? IMG_WBMP : false; break; + + // WEBP + case IMAGETYPE_WEBP: + $new_type = ($format & IMG_WEBP) ? IMG_WEBP : false; + break; } } else