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)
committerAndrew Nicols <andrew@nicols.co.uk>
Wed, 19 Aug 2020 23:16:41 +0000 (07:16 +0800)
commit24ce9b8a105bcc8455366ce0c5ff4e499e7d6f15
tree5a8b4955873d529da0c49db78236ff5a95338bd1
parentadebc5f811e897985ac14263a85dd409f8e75e64
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