Duplicate Media Guard
Prevent duplicate media uploads, find duplicate images, and replace WordPress media while keeping attachment IDs intact.
Solide Wahl
Duplicate Media Guard is a solid plugin choice in 2026, with a few things worth checking first. It runs on 40+ sites, is rated 5/5 and was last updated 2 days ago, and scores 74/100 on our health check.
- Aktiv entwickelt — Letztes Update vor 2 Tagen
- Getestet mit dem neuesten WordPress (7.1)
- Momentum — downloads up 113.1% vs the previous 30 days
- Kleine Benutzerbasis (40+ aktive Installationen)
- Bisher sehr wenige Bewertungen
Wie stapelt es sich?
Side-by-side bei Installationen, Updates, Bewertungen und SupportTägliche Downloads
Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.
Ranglisten
Where Duplicate Media Guard stands todayWordPress.org Ranglisten suchen
Live-Position in der Plugin-Suche, Top 100| Stichwort | Position |
|---|---|
| duplicate images | #38 |
| duplicate media | #12 |
| media replace | #47 |
| replace image | >100 |
| replace media | #44 |
Versionsübernahme
Anteil aktiver Sites pro Release.
Bewertungsaufschlüsselung
★★★★★★★★★★ 5 from 3 reviews
About Duplicate Media Guard
From the official readme · v2.3.1Beschreibung
Duplicate Media Guard helps keep your WordPress Media Library organized by preventing duplicate uploads, identifying duplicate images, and replacing existing media files without creating a new attachment.
Need to replace a media file in your WordPress Media Library? The plugin adds a Replace media action directly in the Media Library. Upload the replacement and choose whether to keep the existing filename and URL or use the new filename and update matching references in supported WordPress content and metadata. The attachment ID is retained in both modes.
Beyond media replacement, Duplicate Media Guard helps prevent accidental re-uploads. Filename checks catch matching names, exact file hashing identifies byte-identical images, and perceptual hashing can identify resized or recompressed images even when filenames differ. When potential image matches are found, the uploader shows previews so you can review them before deciding whether to cancel or continue.
Why use this plugin?
- Replace media in WordPress without creating a new attachment; keep the existing URL or update supported WordPress references, depending on the selected mode.
- Prevent accidental duplicate uploads and reduce unnecessary storage use.
- Review possible image duplicates before uploading.
- Works with the standard WordPress Media Uploader — no custom upload interface to learn.
How Replace Media works:
Enable Enable Media Replace in the plugin settings. A Replace media link then appears in the Media Library for any file you have permission to edit. Upload the replacement and choose one of two replace modes:
- Replace file only — keeps the same filename, URL, and folder. The replacement must be the same file type.
- Replace file and update all links — uses the new filename and updates matching references in supported WordPress content and metadata. Links on external websites are not changed.
The attachment ID is preserved in both modes. The existing URL is retained only when you choose Replace file only.
Duplicate detection examples:
logo.pngandlogo.png→ Duplicatelogo.pngandlogo.jpg→ Duplicate (when extension check is disabled)banner.webpandbanner.webp→ Duplicatephoto.jpgand a resized or recompressedcopy.webp→ Possible visual duplicate (when visually similar detection is enabled)
This helps reduce unnecessary duplicates and storage use while still allowing intentional uploads.
Hauptmerkmale
- Replace an existing media file while retaining its attachment ID; keep the current URL in Replace file only mode or update supported WordPress references in the other mode.
- Review possible image duplicates with existing-media previews before uploading.
- 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 independently in the settings.
- Use the standard WordPress Media Uploader — no custom upload interface needed.
- Index existing image fingerprints gradually in the background.
- Recheck previously uploaded images from Media → Duplicate Media Settings → Duplicate Media if the initial background index missed files.
- Review exact duplicate image groups in Media → Duplicate Media Settings → Duplicate Media, compare file details, and choose a primary attachment without changing media.
The settings screen has General Settings and Duplicate Media tabs. The Duplicate Media tab uses saved SHA-256 image fingerprints, shows up to 10 attachments per group, and displays 20 duplicate groups per page. Search by filename or title, and sort media within each group. File details are collapsed until View image details is clicked; image dimensions appear centered over each preview. Use Recheck existing media to restart background fingerprinting from the beginning and find older images that were not indexed previously. The page reflects matches as indexing progresses. Free merging is limited to 50 duplicate groups in total, with groups over three images requiring Pro. After the 50th successful Free group merge, an upgrade dialog explains the limit; additional groups are blocked by the server until Pro is active. Before changing references, the plugin re-hashes every selected file and saves a private backup of the source file, generated image sizes, attachment data, and supported references. Backups are kept indefinitely outside the public WordPress directory; merging is blocked if a private writable location and restrictive file permissions cannot be verified.
Merge updates matching media URLs in post content, excerpts, and post metadata (including generated image-size URLs), and updates WordPress _thumbnail_id featured-image metadata. Each reference source is limited to 500 matches; if a source exceeds the limit, the operation stops without deleting the duplicate. The plugin backs up, verifies, and rescans supported references before deleting an attachment. Widgets, plugin-specific attachment-ID fields, external sites, and custom storage locations are not updated. Saved hashes may be stale if files are changed outside WordPress, so selected files are checked again immediately before merge. Bulk operations process one attachment per request and can resume after an interrupted request; failed updates are logged and do not trigger deletion.
Developer Integration
The Free plugin exposes a versioned PHP integration API for compatible add-ons:
WDMG_VERSION,WDMG_MINIMUM_WP_VERSION,WDMG_MINIMUM_PHP_VERSION, andWDMG_INTEGRATION_VERSIONdescribe the installed plugin and integration contract.Wdmg_Integration::get_compatibility_info()returns those version values, andWdmg_Integration::is_compatible( $minimum_version )checks an add-on’s minimum integration version.Wdmg_Integration::can_manage()andWdmg_Integration::can_edit_attachment( $attachment_id )provide server-side capability checks.Wdmg_Integration::get_attachment_data( $attachment_id )returns attachment details for a user allowed to edit that media item, or aWP_Errorwhen access is denied or the item is invalid.Wdmg_Integration::get_duplicate_groups( $args )returns paginated exact-image-hash groups and limited post-content / featured-image reference details to administrators, or aWP_Erroron denial or query failure. Supported arguments arepage,search,sort(filename,date, orsize), andorder(ascordesc).Wdmg_Integration::start_merge( $primary_id, $duplicate_ids )andstart_bulk_merge( $duplicate_to_primary_map )create an authorized, server-limited merge operation. Free merging is limited to 50 duplicate groups in total.Wdmg_Integration::process_merge_operation( $operation_id ),get_merge_operation( $operation_id ), andget_pending_merge_operation()process, inspect, and resume the current administrator’s durable operation.- The
wdmg_register_admin_pagesaction fires while the Free Media Library submenu is registered and receives the parent slug, required capability, and integration version. Add-ons must still enforce their own authorization on every page and action. - The
wdmg_admin_tabsfilter adds add-on tabs to Media → Duplicate Media Settings. Each tab is keyed by a URL-safe slug and provides a translatedlabelplus a callablecallback. The built-in tabs are General Settings and Duplicate Media. - Operation lifecycle actions are
wdmg_before_merge(operation ID, primary ID, duplicate ID, private backup path),wdmg_merge_after(operation ID, primary ID, duplicate ID, result details), andwdmg_merge_failed(operation ID, primary ID, duplicate ID,WP_Error).
The merge and reference APIs require integration version 2. Only the documented post-content URL and featured-image adapters are supported by this initial merge implementation.
How to Replace Media in WordPress (Step by Step)
- Go to Settings → Duplicate Media Guard and turn on Enable Media Replace.
- Open your WordPress Media Library.
- Click any media item and select Replace media.
- Upload the replacement file.
- Choose your replace mode and click Update. The attachment ID is preserved; the existing URL stays the same in Replace file only mode, while the other mode updates matching supported WordPress references.
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.
Installation
Modern Installation
- Go to WordPress Dashboard → Plugins → Add New Plugin.
- Search for Duplicate Media Guard.
- Klicken Sie auf Jetzt installieren.
- Aktivieren Sie das Plugin.
Manuelle Installation
- Upload the plugin folder to the
/wp-content/plugins/directory. - Go to Plugins in your WordPress dashboard.
- Activate Duplicate Media Guard.
Änderungsprotokoll
Includes security check updates.
2.3.1 – 2026-11-30
- Security check updates.
2.3.0 – 2026-11-17
- Added duplicate media merging.
- Improved the admin interface.
- Added Pro add-on integration architecture.
- Updated the documentation URL.
2.2.0 – 2026-11-12
- Added safe duplicate merging with verified private backups and reference replacement.
- Added persistent, resumable merge operations with a server-enforced five-duplicate limit.
- Added merge integration API version 2 and lifecycle hooks.
2.1.1 – 2026-10-28
- Minor changes and improvements.
2.1.0 – 2026-10-24
- Added exact image hashing and perceptual similarity detection.
- Added pre-upload match previews with cancel or upload-anyway options.
- Added settings switches for duplicate protection and image hash checks.
- Restored the standard duplicate-upload notice flow when image hash checks are disabled.
- Added media replacement features.
1.0.1 – 2026-09-27
- Fixed color and security issues.
Screenshots
Für Entwickler
Ist das dein Plugin? Zeigen Sie die Zahlen.
Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.
Best Duplicate Media Guard alternatives
All duplicate images plugins →Fragen und Antworten
Duplicate Media Guard: quick answers
Gerade Antworten, gezogen von Live WordPress.org Daten.
Quelle: WordPress.org
Is Duplicate Media Guard free?
Yes. Duplicate Media Guard is free to download and use from the official WordPress.org plugin directory.
Is Duplicate Media Guard safe to use in 2026?
Duplicate Media Guard is a solid plugin choice in 2026, with a few things worth checking first. It runs on 40+ sites, is rated 5/5 and was last updated 2 days ago, and scores 74/100 on our health check.
How many websites use Duplicate Media Guard?
Duplicate Media Guard is active on 40+ WordPress websites and has been downloaded 945 times since it launched in September 2026. It was downloaded 522 times in the last 30 days.
Does Duplicate Media Guard work with WordPress 7.1?
Yes. The developer has tested Duplicate Media Guard up to WordPress 7.1.5, the latest release. It requires WordPress 6.2 or newer.
What PHP version does Duplicate Media Guard need?
Duplicate Media Guard requires PHP 7.2 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Duplicate Media Guard last updated?
The latest version, 2.3.1, was released on November 30, 2026 (2 days ago).
Who makes Duplicate Media Guard?
Duplicate Media Guard is developed and maintained by Rashed Uzzaman.
What are the best alternatives to Duplicate Media Guard?
The most popular alternatives to Duplicate Media Guard are Media Purge (100+ installs), Mediapapa (50+ installs) and MediaVoom (30+ installs).
Angetrieben von PageForge
Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.
PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.
- CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
- seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
- Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
- Kostenlos auf WordPress.org, keine Kreditkarte
