plugin-icon

WP SVG Images

제작자: ShortPixel·
Add SVG support to your WP website. Securely upload SVG files, automatic sanitization, Media Library preview.
등급
5/5
버전
4.4
활성화된 설치 항목
30K
최근 업데이트일
Dec 10, 2025
WP SVG Images

Securely upload SVG files to your Media Library. Uploaded SVG files are automatically sanitized.

SVG stands for Scalable Vector Graphics and is probably the most efficient way to display images. WP SVG Images Plugin is an easy-to-use and lightweight plugin that allows you to upload SVG files to your media library safely and easily.

Features

  • Support for SVG uploads to your Media Library.
  • Sanitize uploaded SVG files. Malicious SVG/XML files are rejected from upload.
  • Admin configurable SVG support for different user roles. Ability to disable SVG upload for different user roles.
  • Different user roles can upload and/or sanitize the uploaded SVG images.
  • SVG preview in Media Library.

Support

24/7 SVG support offered by ShortPixel here or here.

Recommended plugins

This plugin is supported & maintained by ShortPixel. Other popular plugins by ShortPixel: FastPixel Caching – WP Optimization made easy ShortPixel Image Optimizer – Image optimization & compression for all the images on your website, including WebP delivery – ShortPixel Image Optimizer. ShortPixel Adaptive Images – On-the-fly image optimization & CDN delivery. Enable Media Replace – Easily replace images or files in Media Library. reGenerate Thumbnails Advanced – Easily regenerate thumbnails. Resize Image After Upload – Automatically resize each uploaded image.

Hooks for developers

WPSVG_setAllowedTags

Allows you to specify more tags that will be not removed during sanitization

add_filter( 'WPSVG_setAllowedTags', 'my_custom_allowed_svg_tags', 10, 1 ); function my_custom_allowed_svg_tags( $tags ){ $tags[] = 'path'; return $tags; }

WPSVG_setAllowedAttrs

Allows you to specify more attributes that will be not removed during sanitization

add_filter( 'WPSVG_setAllowedAttrs', 'my_custom_allowed_svg_attributes', 10, 1 ); function my_custom_allowed_svg_attributes( $attributes ){ $attributes[] = 'fill'; return $attributes; }
무료Business 요금제에서
설치하면 WordPress.com 서비스 약관서드파티 플러그인 약관에 동의하게 됩니다.
테스트된 버전
WordPress 6.9
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.