Svigent Tools is a lightweight, modern, and secure solution for using SVG (Scalable Vector Graphics) in WordPress.
By default, WordPress restricts SVG uploads due to potential XML-based vulnerabilities (such as Cross-Site Scripting and XML External Entity attacks). Svigent Tools solves this by implementing enterprise-grade DOM-level sanitization on upload, giving you complete peace of mind while designing beautiful, resolution-independent vector graphics.
enshrined/svg-sanitize to strip malicious scripts, event listeners, and dangerous entities before files reach your disk.wp-admin/upload.php.viewBox and width/height coordinates on upload and writes them to WordPress attachment metadata to preserve natural aspect ratios.<img> elements with raw <svg> using lightweight client-side Vanilla JS (< 2KB), enabling dynamic CSS styling (fill: currentColor) and hover animations.MutationObserver.srcset generation to conserve server disk space.