Scalable Vector Graphics
The story so far: In the beginning the Plugin was created. This has made a lot of people very angry and been widely regarded as a bad move. I made a plugin a while ago — it serves a very basic purpose. Allow users to upload and embed SVG files in their websites.
You can download the plugin via WordPress or via GitHub. What’s an SVG? SVG files are two-dimensional vector graphics, that can be both static and dynamic. This plugin allows you to easily use them on your site.
There’s a great post on StackExchange covering some of the basic concerns for SVG Security. Another resources is this video:
Warning: Understanding that uploading any file to the system is a potential security risk, it is strongly recommended to only let trusted users to have upload privileges.
Such a small plugin, I actually got to solve some bugs for the developers over at Mozilla:
- WordPress will give the SVG files a height and width of 1px by 1px when you insert them. This is expected. Remember to change it to something you like when you embed your file.
- Not all SVG files are transparent, make sure yours is before reporting that as a bug.
- I do not support anything but the latest browsers. Sorry.
- Not all SVG files are created equal. There are many ways to make them, some ways will NOT work with this plugin or the Web in general. The plugin expects you’re working with a precompiled file. Mainly because inline will work regardless of having this plugin.
- There appears to be an issue on Pantheon with this plugin. It throws an error when you upload the SVG — saying that it failed… but it didn’t. Just reload the page and it’s there.