前言介紹
- 這款 WordPress 外掛「WP SVG Images」是 2016-08-25 上架。
- 目前有 30000 個安裝啟用數。
- 上一次更新是 2025-04-13,距離現在已有 21 天。
- 外掛最低要求 WordPress 3.0.1 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 5.6.40 以上。
- 有 12 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
kubiq | shortpixel |
外掛標籤
SVG | svg upload | svg support | sanitization |
內容簡介
安全上傳 SVG 檔案到您的媒體庫。上傳的 SVG 檔案將自動過濾。
SVG 代表可縮放向量圖形,是最有效率的顯示圖片的方式。
WP SVG Images 外掛是一個易於使用和輕量的外掛,讓您可以安全且容易地上傳 SVG 檔案到媒體庫。
功能
支援將 SVG 上傳到媒體庫。
清理已上傳的 SVG 檔案。不良的 SVG/XML 檔案會被拒絕上傳。
管理員可以設定不同用戶角色的 SVG 支援。可以停用不同用戶角色的上傳 SVG 功能。
不同的使用者角色可以上傳和/或清理上傳的 SVG 圖像。
在媒體庫中預覽 SVG。
支援
24/7 SVG 支援由 ShortPixel 在此或在此處提供。
推薦的外掛
此外掛由 ShortPixel 支援和維護。
ShortPixel 的其他熱門外掛:
ShortPixel Image Optimizer - 對您網站上的所有圖像進行優化和壓縮,包括 WebP 傳送-ShortPixel Image Optimizer。
ShortPixel Adaptive Images - 在線優化圖像和 CDN 提供。
Enable Media Replace - 輕鬆替換媒體庫中的圖像或檔案。
reGenerate Thumbnails Advanced - 輕鬆重新產生縮圖。
Resize Image After Upload - 自動調整每個上傳的圖像大小。
開發人員勾子
WPSVG_setAllowedTags
允許您指定更多在清理期間不會被移除的標籤
add_filter( 'WPSVG_setAllowedTags', 'my_custom_allowed_svg_tags', 10, 1 );
function my_custom_allowed_svg_tags( $tags ){
$tags[] = 'path';
return $tags;
}
WPSVG_setAllowedAttrs
允許您指定更多在清理期間不會被移除的屬性
add_filter( 'WPSVG_setAllowedAttrs', 'my_custom_allowed_svg_attributes', 10, 1 );
function my_custom_allowed_svg_attributes( $attributes ){
$attributes[] = 'fill';
return $attributes;
}
原文外掛簡介
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;
}
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「WP SVG Images」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0 | 1.1 | 1.2 | 1.3 | 1.4 | 2.0 | 2.1 | 2.2 | 2.3 | 2.4 | 2.5 | 2.6 | 2.7 | 2.8 | 2.9 | 3.0 | 3.1 | 3.2 | 3.3 | 3.4 | 3.5 | 3.6 | 3.7 | 4.0 | 4.1 | 4.2 | 4.3 | 4.4 | trunk |
延伸相關外掛(你可能也想知道)
SVG Support 》這個 WordPress 外掛可以安全地上傳 SVG 檔案至媒體庫,並像其他圖片一樣使用。現在還有可選的清理功能!當你在網站上使用 SVG 圖片,很難使用 CSS 來設計 SV...。
Secure SVG Support 》, , ,
Secure SVG 外掛介紹
, ,Secure SVG 外掛讓您可以安全地將 SVG 檔案上傳至 WordPress 媒體庫...。
SVGPlus 》**總結:**, , SVGPlus 是一款全面的 WordPress 外掛程式,旨在強化您的網站以安全和高效地處理 SVG(可縮放的向量圖形)文件。無論您是設計師、開發人員還是...。
SEO File Renamer 》這是一個非常簡單的外掛程式,用於上傳檔案名稱的合法化處理。, 基本上,它是為了讓搜索引擎更容易讀取您上傳的文件名稱,因此更有利於 SEO,在文件夾中更易...。
Sanitize DB 》這個外掛會透過移除未使用的元數據項目和其他未連結的記錄,清理資料庫。它會逐一刪除未使用的資料,掃描資料庫後在外掛儀表板上顯示統計資訊。當你的網站非...。