WP-Optimize
95Get caching and more with this powerful cache plugin. Cache, optimize images, clean your database and minify f...
Unlock the magic of your website with the SVG block. Out-of-the-box security, dual storage modes, and turbocharged speed optimization!
OH MY SVG is a WordPress plugin designed to enhance your website by allowing you to add and manipulate SVG images directly within the Gutenberg block editor. It offers an intuitive interface for incorporating SVG icons and illustrations, along with features like automatic markup sanitation and optimization.
The plugin provides two storage modes to manage SVG files effectively: Inline Mode for small icons, which reduces page load time, and Media Library Mode for larger illustrations, which helps prevent database bloat. It also includes built-in utilities for colour customization and stroke adjustments, making it suitable for developers and designers looking to utilise SVGs without compromising performance or security.
Best for: This plugin is suitable for developers and designers who want to use SVG images on their WordPress sites.
What it does well
Where it falls short
OH MY SVG provides a practical solution for managing SVG images in WordPress while prioritising performance and security. It is a useful tool for those looking to enhance their site's visual elements.
Erik's own description of OH MY SVG, lightly tidied.
Enhance your WordPress website with the power of SVG images using the OH MY SVG plugin. Easily add, manipulate, and optimize SVG images directly within the Gutenberg block editor.
Unlike traditional image blocks, this plugin provides an intuitive interface that allows you to incorporate SVG icons, illustrations, or HTML snippets effortlessly. Experience the convenience of automatic markup sanitation, SVGO optimization, and a range of built-in utilities like color customization, stroke adjustments, and element stripping.
One of the biggest issues with using SVGs in WordPress is database bloat. If you paste a heavy SVG directly into the editor, its entire XML markup gets saved into every single post revision, quickly cluttering your database. OH MY SVG solves this by offering two distinct storage modes:
Unleash your creativity with endless possibilities—animate SVGs using CSS or JavaScript, modify inner colors, and scale infinitely without losing sharpness.
The OH MY SVG plugin prioritizes your website’s security. By default, WordPress blocks raw SVG file uploads due to severe XML/XSS vulnerabilities. This plugin keeps that protection intact. Instead of allowing dangerous direct .svg uploads, our plugin safely processes the SVG markup within the editor using a robust JavaScript purifier (DOMPurify). When saving to the Media Library, it creates a harmless PNG proxy file and securely stores the sanitized SVG string as an attachment metadata field. SVGs cannot be maliciously uploaded from the website “side” (e.g., frontend forms); only trusted users with editor permissions can include them.
We love your input! We want to make contributing to this project as easy and transparent as possible, whether it’s:
Other plugins for making sites fast.
Get caching and more with this powerful cache plugin. Cache, optimize images, clean your database and minify f...
All-in-one unbeatable acceleration & PageSpeed improvement: caching, image/CSS/JS optimization...
Comprehensive image optimization with WebP, AVIF, Lazy Load, and more. Optimize images automatically for Faste...
Easy to use Under Construction Page & Coming Soon Page. Enable Under Construction Mode in seconds & sh...
Compress and optimize images, enable lazy load, serve WebP & AVIF, and speed up your site with a global im...
Speed up your website by using our WebP & AVIF Converter. Optimize images and serve WebP and AVIF images i...