Skip to main content
Agency Program Get 2× more leads and save 50% on hosting. Built for agencies ready to grow. Book a call
WP SVG Images icon

WP SVG Images

v4.4
by ShortPixel · 4.8 (13 reviews)

Add SVG support to your WP website. Securely upload SVG files, automatic sanitization, Media Library preview.

30K+ active installs Updated Jan 23, 2025 Tested to 6.7.2 Requires PHP 5.6.40
Try Demo Download
Pre-installed Ready in ~10s No card
WP SVG Images

About WP SVG Images

The WP SVG Images Plugin allows you to securely upload SVG files to your media library. The plugin automatically sanitizes the uploaded files to ensure they are safe. It also provides support for different user roles and allows you to preview SVG files in the media library.

Frequently asked questions

What does the WP SVG Images plugin do?
The WP SVG Images plugin allows you to securely upload SVG files to your WordPress Media Library. It automatically sanitizes uploaded SVG files to prevent malicious content.
What are the key features of WP SVG Images?
Key features include SVG upload support, automatic sanitization of SVG files, and SVG preview in the Media Library. It also offers configurable SVG support for different user roles.
Who is the author of WP SVG Images?
The WP SVG Images plugin is authored and maintained by ShortPixel.
Does WP SVG Images offer support?
Yes, 24/7 SVG support is offered by ShortPixel.
Are there any recommended plugins by the same author?
ShortPixel recommends plugins such as FastPixel Caching, ShortPixel Image Optimizer, ShortPixel Adaptive Images, Enable Media Replace, reGenerate Thumbnails Advanced, and Resize Image After Upload.

Changelog

4.4

? Security Update

Release Date: January 23, 2025

?️ Fixes

  • Security Patch: Resolved another potential Cross-Site Scripting (XSS) vulnerability, responsibly disclosed by the amazing team at WordFence and discovered by Ryan Zegar.

We highly recommend updating to this version to ensure your site remains safe and secure. ??

4.3

Release date: June 20th, 2024
* Fix: Patched a Stored Cross-Site Scripting vulnerability found by Colin Xu and responsibly disclosed by the WordFence team;
* Compat: Added compatibity with WP All Import plugin;
* Compat: Tested with the latest versions of WordPress (6.6) and PHP (8.3).

4.2

Release date: April 6th, 2023
* Compat: Tested on WordPress 6.2;
* Compat: Updated SVG sanitizer scripts;
* Tweak: Skip percentage width and height when reading SVG dimensions.

4.1

Release date: August 1st, 2022
* Tweak: auto hide the settings notice after visiting the settings page;
* Compat: tested the compatibility with WordPress 6.0;
* Fix: the settings link and button from the notice now work fine on all WordPress installs.

4.0

Release date: March 29th, 2022
* New: joined the ShortPixel family;
* New: added SVG sanitization;
* New: added settings page where you can enable/disable SVG upload per user role;
* Compat: deprecated WP_SVG_FOR_EVERYONE.

3.7

  • tested on WordPress 5.9

3.6

  • fix typo in last update

3.5

  • tested on WordPress 5.8
  • fix missing width and height for core/image block

3.4

  • allow SVG uploads only for administrators and editors

3.3

  • tested on WordPress 5.7

3.2

  • tested on WordPress 5.4

3.1

  • tested on WordPress 5.3

3.0

  • added support for Beaver Builder media uploader

2.9

  • tested on WordPress 5.0

2.8

  • fix SVG size as featured image

2.7

  • earlier upload_mimes filter init fix

2.6

  • svg sizing css removed because of many conflicts

2.5

  • fixed svg icon size in plugins updating listing

2.4

  • SVN commit problem

2.3

  • fixed svg icon size in plugins listing

2.2

  • convert svg width and height to float number [PX]

2.1

  • added svg width and height metadata

2.0

  • added svgz support
  • fixed svg thumbnails

1.4

  • repair count() error

1.3

  • 4.9 compatibility

1.2

  • added size calculation fix for wp_get_attachment_image_src

1.1

  • fix for WP4.7.1 bug

1.0

  • First version

Try other plugins

Advanced Custom Fields (ACF) icon

Advanced Custom Fields (ACF)

4.5 · 2M+ installs

Advanced Custom Fields (ACF) helps you easily customize WordPress with powerful, professional and intuitive fields. Proudly powering over…

SVG Support icon

SVG Support

4.8 · 1M+ installs

Safely upload SVG files to the Media Library with optional sanitization and minification. Render your SVG files inline…

File Manager icon

File Manager

4.7 · 1M+ installs

file manager provides you ability to edit, delete, upload, download, copy and paste files and folders.