How to Safely Enable WordPress SVG Support


SVG is an XML-based vector image which is commonly used by websites and brands to display logos and icons on their websites. The main reason they are especially popular among developers and designers is because they are a scalable image format, generally smaller in file size (sometimes by quite a bit), and don’t pixelate on retina screens. WordPress by default though doesn’t allow you to upload the SVG file format, mainly due to security concerns. Today we are going to dive into one way to safely enable WordPress SVG support, discuss browser support, as well as some caveats if you decide you want to switch to the vector image format. Hopefully one day we will SVG as part of WordPress core, but we are not quite there yet.
What is an SVG?
According to Wikipedia, an SVG (scalable vector graphics) is an XML-based vector image format for two-dimensional graphics with support for interactivity and animation. You can even manipulate them with code or your text editor. The SVG specification is an open standard developed by the World Wide Web Consortium since 1999. SVGs are currently only utilized by 3.4% of all websites, but as you can see below, the adoption rate is growing rapidly.
Source: https://managewp.org/articles/14859/how-to-safely-enable-wordpress-svg-support




source https://williechiu40.wordpress.com/2017/04/13/how-to-safely-enable-wordpress-svg-support/