The only thing one could be concerned about is that there is no method of checking malicious svg code within the svg file. It would be awesome to have a cleaner function that strips potentially dangerous tags from the svg source's xml tree.
If anyone knows an available solution that can easily be implemented via a plugin (or at least a dirty code hack), any source for such an solution is greatly appreciated.
linkonewq Actually exif_imagetype supports even 19 types, with .psd, .ico, and .webp among them (see provided link from php manual).