[ticket/16712] Implement thumbnails for WEBP images in attachments

PHPBB3-16712
This commit is contained in:
3D-I 2021-02-27 20:04:41 +01:00
parent 8f21a055ad
commit 84453ed957

View file

@ -542,6 +542,11 @@ function get_supported_image_types($type = false)
case IMAGETYPE_WBMP: case IMAGETYPE_WBMP:
$new_type = ($format & IMG_WBMP) ? IMG_WBMP : false; $new_type = ($format & IMG_WBMP) ? IMG_WBMP : false;
break; break;
// WEBP
case IMAGETYPE_WEBP:
$new_type = ($format & IMG_WEBP) ? IMG_WEBP : false;
break;
} }
} }
else else