[WordPress] 外掛分享: Duplicate Media Guard

首頁 › 外掛目錄 › Duplicate Media Guard
WordPress 外掛 Duplicate Media Guard 的封面圖片
20+
安裝啟用
★★★★★
5/5 分(2 則評價)
4 天前
最後更新
—
問題解決
WordPress 6.2+ PHP 7.2+ v2.1.0 上架:2026-09-12

內容簡介

Duplicate Media Guard 外掛能有效防止重複檔案上傳,保持 WordPress 媒體庫的整潔。它在上傳檔案前檢查是否已存在相同檔名,從而減少不必要的重複檔案,節省伺服器儲存空間。

【主要功能】
• 自動防止重複媒體上傳
• 檢查檔名是否包含副檔名
• 檢查檔名時忽略副檔名
• 簡單的設定頁面
• 輕量且易於使用
• 與 WordPress 媒體上傳工具相容

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Duplicate Media Guard」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Duplicate Media Guard helps you maintain a well-organized WordPress Media Library. It identifies potential duplicate uploads and lets authorized users replace existing media files without creating a new attachment.
During upload, the plugin compares files with existing Media Library items. Filename checks identify matching names, exact hashing detects byte-identical images, and perceptual hashing can identify resized or recompressed images even when their filenames differ. When potential image matches are found, a pre-upload notice displays previews so you can review them, cancel the upload, or continue.
For example:

logo.png and logo.png → Duplicate
logo.png and logo.jpg → Duplicate (when extension check is disabled)
banner.webp and banner.webp → Duplicate
photo.jpg and a resized or recompressed copy.webp → Possible visual duplicate (when visually similar resized enable)

This helps reduce unnecessary duplicates and storage use while still allowing intentional uploads.
Features

Review possible image duplicates with existing-media previews before uploading. (preview appear if Enable Image Hash Checks)
Detect byte-identical images using exact file hashes.
Identify resized or recompressed images using perceptual hashes.
Match filenames with or without their file extensions.
Enable or disable duplicate protection and image hash checks in the settings.
Replace an existing media file while retaining its attachment ID.
Use the standard WordPress Media Uploader.
Index existing image fingerprints gradually in the background.

Duplicate Detection

Select an image through the WordPress Media Library.
The plugin checks the filename, exact file hash, and perceptual hash of indexed images.
If potential matches are found, a warning shows previews and lets you cancel or proceed. Files with no matches upload without a confirmation.
Files uploaded outside the standard Media Uploader retain the server-side filename duplicate check.

Use Enable Duplicate Protection to turn duplicate checks on or off. Use Enable Image Hash Checks to control exact and visual image matching. When image hash checks are disabled, filename duplicates use the standard WordPress upload notice and copy-URL action, while other files in the same bulk upload continue normally. Existing images are indexed gradually, so visual matching may be incomplete until indexing has progressed.
Replace Existing Media
Enable Enable Media Replace in the plugin settings to show the Replace media action in the Media Library. Users who can upload files and edit the selected media item can choose a replacement and select how it should be applied:

Replace the file only keeps the existing filename, URL, and folder. The replacement must have the same file type.
Replace the file, use the new file name, and update all links applies the uploaded filename and updates matching references in WordPress content and metadata. Links on external websites are not changed.

The attachment ID is retained in either mode. Under Upload Destination, choose whether to use today’s date or keep the existing media date. When using a new filename, this choice also determines the upload folder.

延伸相關外掛

文章
Filter
Mastodon