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:23 +0000 (17:06 +0200)
commitc6bd7bd0aba415cb52f0089e1de42eaaa61a531a
treef369efc27655fc4f0f1826207540509d33c02e01
parenta0fc902eb184cd4097c8ab453ddc57964cd2dbd4
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