MDL-61215 core_files: add new optimised_image group
authorSara Arjona <sara@moodle.com>
Tue, 11 Aug 2020 10:59:59 +0000 (12:59 +0200)
committerSara Arjona <sara@moodle.com>
Fri, 14 Aug 2020 15:06:57 +0000 (17:06 +0200)
commit0f13aee6fb0498cc56d73a191c7d88ef8fd1394c
treecdae0b96af166ab3fa61a98529ff3c0b30fef792
parent89d8f737037153fcda26673d9af8e7f2b20e7028
MDL-61215 core_files: add new optimised_image group

Currently, PHP getimagesize method doesn't support SVG images.
As some features, such as badges, processs and optimise the images
before using them, a new filetype group has been created to exclude
SVG from there: optimised_image.
SVG can't be removed from web_image because then users won't be
able to add SVG images to their courses using labels, pages...
lang/en/mimetypes.php
lib/classes/filetypes.php
lib/filelib.php
lib/form/tests/filetypes_util_test.php