WordPress.org

Plugin Directory

Scalable Vector Graphics (SVG)

SVG files are two-dimensional vector graphics, that can be both static and dynamic. This plugin allows your to easily use them on your site.

3.0

  • Removed the sanitizer. This plugin isn't about security. It's about letting you use SVG files easily.
  • Added more styling to improve Media Manager, including adjustments Grid View and Listing View
  • Added additional styling to allow for SVG files to show for Featured Images.
  • Reduced overall code footprint and complexity.
  • Added code documentation.
  • Resolved several serverside issues you may have been encountering having to do with security related stuff.

2.3.1

  • Added inline styling to the administration area so SVG attachments will show up in list/grid views.
  • Props to shield-9 (Daisuke Takahashi) for the code.

2.2.1

  • Added a security library to scan all uploaded SVG files. It has a list of "expected" elements and attributes, if the file contains thing it does not expect, it removes them. This will include things like Javascript.
  • The security cannot be perfect and it is recommended to only provide upload privileges to trusted users.
  • Props to thedwards for bringing this to my attention.

2.0

  • I broke everything. I'm sorry, but it had to be done.
  • Basically how I had approached the problem before was wrong. It is now being done properly using the correct mime/type.
  • Shortcodes are no longer needed, you can now use SVG files as you would any other image.
  • Previews now show up in the media area for SVG files.
  • IMPORTANT: Anyone using the version prior to 2.0 were using shortcodes to display SVG files. You will have to go back and replace those shortcodes with actual image tags. If you're not familiar with HTML, you can just delete the shortcode out of the page/post and then insert the SVG file as you would any other image.
  • Thanks to the guys over at mozilla.org for kicking me in the butt to actually fix this thing: https://bugzilla.mozilla.org/show_bug.cgi?id=721830

1.2

  • One less required parameter and a graceful fail over to a valid implementation type. Props @Phil

1.1

  • Fixing a typo. This typo caused ONLY SVG files to be allowed to upload via the media uploader.

1.0

  • I N C E P T I O N

Requires: 3.0 or higher
Compatible up to: 4.5.3
Last Updated: 1 day ago
Active Installs: 10,000+

Ratings

4.6 out of 5 stars

Support

2 of 2 support threads in the last two months have been marked resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

0,1,0 100,1,1 100,1,1
100,1,1
100,1,1
100,1,1 100,1,1 100,1,1 100,3,3
100,1,1
0,2,0
100,1,1
67,3,2
0,1,0
100,1,1
100,1,1
100,1,1
100,1,1 100,1,1
100,2,2
100,1,1
100,1,1
100,1,1 100,1,1