Title: Media Deduper
Author: cornershop
Published: <strong>27 اکتبر 2015</strong>
Last modified: 3 دسامبر 2025

---

جستجوی افزونه‌ها

![](https://ps.w.org/media-deduper/assets/banner-772x250.png?rev=1682001)

![](https://ps.w.org/media-deduper/assets/icon-256x256.png?rev=1682001)

# Media Deduper

 توسط [cornershop](https://profiles.wordpress.org/cornershop/)

[دانلود](https://downloads.wordpress.org/plugin/media-deduper.1.5.9.zip)

 * [جزئیات](https://fa.wordpress.org/plugins/media-deduper/#description)
 * [نقد و بررسی‌ها](https://fa.wordpress.org/plugins/media-deduper/#reviews)
 *  [نصب](https://fa.wordpress.org/plugins/media-deduper/#installation)
 * [توسعه](https://fa.wordpress.org/plugins/media-deduper/#developers)

 [پشتیبانی](https://wordpress.org/support/plugin/media-deduper/)

## توضیحات

Media Deduper will find and eliminate duplicate images and attachments from your
WordPress media library. After installing, you’ll have a new “Manage Duplicates”
option in your Media section.

Before Media Deduper can identify duplicate assets, it will build an index of all
the files in your media library, which can take some time. Once that’s done, however,
Media Deduper automatically adds new uploads to its index, so you shouldn’t have
to generate the index again.

**Need faster indexing? [Check out Media Deduper Pro](https://www.mediadeduper.com/).**

Once up and running, Media Deduper provides you with a “Manage Duplicates” page 
listing all of your duplicate media files. The list makes it easy to see and delete
duplicate files: delete one and its twin will disappear from the list because it’s
then no longer a duplicate. Easy! By default, the list is sorted by file size, so
you can focus on deleting the files that will free up the most space.

**Use this plugin at your own risk. The plugin developers are not responsible for
any lost data or site issues as a result of using this plugin.**

Media Deduper comes with a “Smart Delete” option that prevents a post’s Featured
Image from being deleted, even if that image is found to be a duplicate elsewhere
on the site.

If a post has a featured image that’s a duplicate file, Smart Delete will re-assign
that post’s image to an already-in-use copy of the image before deleting the duplicate
so that the post’s appearance is unaffected. This feature only tracks Featured Images,
and not images used in galleries, post bodies, shortcodes, meta fields, or anywhere
else.

**Looking for more features? [Media Deduper Pro](https://www.mediadeduper.com/) 
includes features for image fields from several popular plugins as well.**

Note that duplicate identification is based on the data of the files themselves,
not any titles, captions or other metadata you may have provided in the WordPress
admin.

Media Deduper can differentiate between 1.) media items that are duplicates because
the media files they link to have the same data and 2.) those that actually point
to the same data file, which can happen with a plugin like WP Job Manager or Duplicate
Post.

As with any plugin that can perform destructive operations on your database and/
or files, using Media Deduper can result in permanent data loss if you’re not careful.**
Back up your data before you try out Media Deduper! Please!**

**Use this plugin at your own risk. The plugin developers are not responsible for
any lost data or site issues as a result of using this plugin.**

**Need more support? [Media Deduper Pro](https://www.mediadeduper.com/) includes
dedicated support from Cornershop Creative.**

### Requirements

Media Deduper requires PHP 7.0 or later.

## عکس‌های صفحه

 * [[
 * [[
 * [[
 * [[

## نصب

 1. Upload the `media-deduper` directory to your plugins directory (typically wp-content/
    plugins)
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Visit Media > Manage Duplicates to generate the duplicate index and see your duplicated
    files

## سوالات متداول

### How are duplicates computed?

Media Deduper looks at the original file uploaded to each attachment post and computes
a unique hash (using md5) for that file. Those hashes are stored as postmeta information.
Once a file’s hash is computed it can be compared to other files’ hashes to see 
if their data is an exact match.

### Why does the list of duplicates include all the copies of a duplicated file and not just the extra ones?

Because there’s no way of knowing which of the duplicates is the “real” or “best”
one based on your preferred metadata, etc.

### Should I just select all duplicates and bulk delete permanently?

NO! Because the list includes every copy of your duplicates, you’ll likely always
want to save one version, so _using Delete Permanently to delete all of them would
be very, very bad._ Don’t do that. You’ve been warned.

Instead, we recommend using the _Smart Delete_ action (which is also found in the
Bulk Actions menu). Smart Delete will delete the selected items one by one, and 
refuse to delete an item if it has no remaining duplicates. For example, if you 
have three copies of an image, and you select all three and choose Smart Delete,
two copies will be deleted and the third will be skipped.

_Again, we strongly recommend backing up your data before performing any bulk delete
operations, including Smart Delete._

### Does this work with any plugins?

The free version does not include plugin support. [Media Deduper Pro](https://www.mediadeduper.com/)
integrates with a number of popular plugins, including WooCommerce and Yoast SEO.

### How can I contribute?

The git repository should be publicly available at https://bitbucket.org/cornershopcreative/
plugin_media-deduper. Feel free to fork, edit, make pull requests, etc.

## نقد و بررسی‌ها

![](https://secure.gravatar.com/avatar/c2c49ef82313095283c6b13d9b5ebf8931580571021beb3cbe2aa45b0d0cec04?
s=60&d=retro&r=g)

### 󠀁[Changed Opinion: Excellent Plugin](https://wordpress.org/support/topic/changed-opinion-excellent-plugin/)󠁿

 [gravnetic](https://profiles.wordpress.org/gravnetic/) 12 فوریه 2025

I installed the plugin and was fairly confused by the plugin WP Settings which has
only a checkbox for changing the index. I found the actual plugin features under
Media. I was again a bit confused because indexing the media is the third tab, but
there is no Index my media or whatever on the first tab. I decided that indexing
my media is probably a good idea so I did that, but then the big choice: Manually
delete duplicates, bulk delete duplicates, or smart delete duplicates. Oh the anxiety
this brought on. This one instruction made the plugin work flawless for me. I hope
it helps others.I finally got the nerve up to manually delete duplicates, but what
I did not realize is you want to leave the image you intend to keep unchecked!Features
I’d like to see:An option to turn off Bulk Delete Unused Image, since with many 
builders and advanced block libraries this is going to result in issues. An option
to remove post meta when File for attachment # could not be found.An option to keep
my most recent image. Since this is what I usually want to keep. I find that when
I take photos I will take several images and almost always I stop when I get the
image I want, the last image. I have edited / managed photoshoots for years and 
this is almost always the case. An explanation on how Smart Bulk Delete Duplicates
works.

![](https://secure.gravatar.com/avatar/e7b032145f76326f6692bddccdb000ec2d7a8b10e3b3128e8f6367ea3c4c5ec7?
s=60&d=retro&r=g)

### 󠀁[Did not work as expected](https://wordpress.org/support/topic/did-not-work-as-expected-4/)󠁿

 [nicole2292](https://profiles.wordpress.org/nicole2292/) 7 می 2024

I downloaded this plugin to use it to remove duplicate media items that had been
accidentally created by WP All Import. In our case there were 2 media items (attachments)
which referred to a single file. I just wanted to remove the duplicate attachment
post and leave the file and one attachment post. Firstly the index did not find 
all instances of the issue. Secondly when I used the smart delete on some instances
it removed the files and left media items which were no longer pointing to any file
on the server so returned a 404 for the missing media file. This is certainly not
the expected behaviour so I had to revert to my backup.

![](https://secure.gravatar.com/avatar/1facd7ede8aece6d1f1b60fd62e6fa5c9b69de7bc4092945c96d550f8d264c06?
s=60&d=retro&r=g)

### 󠀁[Gutes Plugin](https://wordpress.org/support/topic/gutes-plugin-68/)󠁿

 [caw67](https://profiles.wordpress.org/caw67/) 12 فوریه 2024

Praktisch umd doppelte Medien zu vermeiden. Arbetitet super

![](https://secure.gravatar.com/avatar/b870240c7ee408ca095de2ad6e5e8c785b382b38aca8e7b6a5f1500b61e84068?
s=60&d=retro&r=g)

### 󠀁[Great Customer Service](https://wordpress.org/support/topic/great-customer-service-406/)󠁿

 [axelfunding](https://profiles.wordpress.org/axelfunding/) 25 ژانویه 2024

They listen and resolve issues without any problems.

![](https://secure.gravatar.com/avatar/6094ad8a8fcaca6a1c93c5408a0aada5434ce82aeef08f58bd3a3e32ca7c3660?
s=60&d=retro&r=g)

### 󠀁[Very good and sufficient for our school website](https://wordpress.org/support/topic/very-good-and-sufficient-for-our-school-website-2/)󠁿

 [koehlersmichael](https://profiles.wordpress.org/koehlersmichael/) 23 دسامبر 2023

For us, the free version is completely sufficient for basic functions. It solved
the problem really well that we were multiple admins and often accidentally uploaded
content twice. Thanks!

![](https://secure.gravatar.com/avatar/9ed0866cebfd1aa50b5c24829f97a3400629cf575ab4664818d12f23659272bd?
s=60&d=retro&r=g)

### 󠀁[underwhelming](https://wordpress.org/support/topic/underwhelming-2/)󠁿

 [ngjarman](https://profiles.wordpress.org/ngjarman/) 25 آگوست 2023

Ran on a site I know to have hundreds of duplicated images. Indexed 33k images and
didn’t find a single one!

 [ خواندن تمامی 43 نقد و بررسی‌ ](https://wordpress.org/support/plugin/media-deduper/reviews/)

## توسعه دهندگان و همکاران

“Media Deduper” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کرده‌اند.

مشارکت کنندگان

 *   [ cornershop ](https://profiles.wordpress.org/cornershop/)
 *   [ Xavier Serrano ](https://profiles.wordpress.org/xavierserranoa/)
 *   [ kenjigarland ](https://profiles.wordpress.org/kenjigarland/)

[ترجمه “Media Deduper” به زبان شما.](https://translate.wordpress.org/projects/wp-plugins/media-deduper)

### علاقه‌ مند به توسعه هستید؟

[Browse the code](https://plugins.trac.wordpress.org/browser/media-deduper/), check
out the [SVN repository](https://plugins.svn.wordpress.org/media-deduper/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/media-deduper/) 
by [RSS](https://plugins.trac.wordpress.org/log/media-deduper/?limit=100&mode=stop_on_copy&format=rss).

## گزارش تغییرات

#### 1.5.9

 * Fixed PHP warnings that could appear on the Debug Info screen if other plugins
   altered the `active_plugins` option or the output of the `get_plugins()` function.
 * Fixed a deprecation from WP Core (“WP_Scripts::localize was called incorrectly”).

#### 1.5.8

 * Fixed deprecation warnings (“Creation of dynamic property…”) that appeared under
   PHP 8.0+.
 * Fixed a deprecation from WP Core (“WP_List_Table::__set(): The property `is_trash`
   is not declared.”).

#### 1.5.7

 * Enhancement: instead of warning about Smart Deletion each time a Smart Delete
   operation is performed, Media Deduper will now only warn before the first operation.
   Users can now Smart Delete multiple pages’ worth of items on the Manage Duplicates
   screen without repeatedly clicking through the Smart Delete warning.
 * Fixed a bug that caused multiple copies of the warning message to appear when
   smart deleting items on the Manage Duplicates screen, when running on WordPress
   5.7 and up.
 * Fixed a bug that could, under rare circumstances, cause fatal errors on the Manage
   Duplicates screen.
 * The “Block Duplicate Uploads” feature has been removed for the time being due
   to incompatibilities with the Block Editor.

#### 1.5.6

 * Addressed two issues with the warning message that appears when HTTP basic authentication
   is detected: the ‘Check Again’ link is no longer broken, and the message now 
   goes away when WP Cron HTTP Auth is properly configured.

#### 1.5.5

 * Addressed a rare fatal error with trying to handle a WP_Error as an array in 
   mdd_basic_auth_check().

#### 1.5.4

 * Enhancement: Now MDD tries to identify when a site is behind an http auth login
   that interfere’s with wp-cron and MDD’s ability to index media.
 * Enhancement: Now only loading MDD scripts and styles on admin pages where they’re
   required.

#### 1.5.3

 * You can now search duplicate media from the Manage Duplicates screen using the“
   Search duplicate items” search box.
 * An issue that could cause PHP errors to appear on the Media Deduper plugin settings
   screen has been fixed. This issue did not affect other pages or admin screens.

#### 1.5.2

 * Fix an issue that could cause a performance hit or MySQL bottleneck on sites 
   with large numbers of posts during initial activation, or when upgrading from
   1.4.2 or earlier to 1.5.0 or 1.5.1

#### 1.5.1

 * Fix missing files in initial release of version 1.5.0, which could cause fatal
   errors

#### 1.5.0

 * Media Deduper now indexes attachments asynchronously, meaning you don’t have 
   to keep the browser open while it indexes your media library.

#### 1.4.2

 * Media Deduper now fully supports the media trash feature (a.k.a. the MEDIA_TRASH
   constant; see [this post](https://philkurth.com.au/wordpress/enabling-wordpress-media-trash-feature/)
   for more information). As of Media Deduper 1.4.2, if the media trash feature 
   is enabled:
    - The Manage Duplicates screen will list (and allow the user to delete or Smart
      Delete) both trashed and non-trashed attachment posts. Previously, only non-
      trashed attachments were listed on this screen, which caused confusing behavior
      if, for instance, a site’s media library contained two copies of an image,
      but one was in the Trash.
    - If a user attempts to upload a media file that already exists in the media
      library, but the existing copy of the file is in the Trash, the user will 
      _no longer_ be prevented from uploading the new copy.
 * Bugfix: The “Attach” or “Detach” links in the list table on the Manage Duplicates
   screen are now working again, after they stopped working in a previous version
   of the plugin.

#### 1.4.1

 * Tweaks to messages about Pro: display on fewer pages, don’t display to users 
   who don’t have permission to install new plugins, change wording slightly for
   clarity.

#### 1.4.0

 * “Delete Preserving Featured” has been renamed to “Smart Delete”.
 * Smart Delete logic has been changed so it will never delete the last copy of 
   a media item. Previously, Delete Preserving Featured would _only_ save the last
   copy of a file if it or one of its duplicates was used as a featured image somewhere
   on the site.
 * By default, the list of duplicates is now sorted by size (largest first), and
   secondarily by date (newest first).
 * Media Deduper will now warn users before executing a Smart Delete operation, 
   so you have a chance to cancel if you change your mind.
 * We’ve added information about the newly released Media Deduper Pro.
 * If your site is running PHP 5.2 or earlier, Media Deduper will now deactivate
   itself instead of causing errors.
 * Bugfix: The second bulk action menu, at the bottom of the list of duplicates,
   was not behaving correctly under some circumstances. This has been fixed.
 * Bugfix: Prior versions of Media Deduper could potentially have affected how other
   plugins’ screen options were saved. This issue would only have affected plugins
   that did unusual things (e.g. data validation logic) on the `set-screen-option`
   hook, and we haven’t run into this issue in the wild, but now it’s fixed anyway.

#### 1.3.2

 * Bugfix: Fixing an issue that caused bulk actions (Delete Permanently, Delete 
   Preserving Featured) to not work correctly on some versions of WordPress.
 * When a media file is changed (using the built-in WP image editor or the Enable
   Media Replace plugin, for instance), the plugin will now re-check whether the
   updated file is a duplicate of another file in the media library.
 * Minor code cleanup.

#### 1.3.1

 * Bugfix: Fixing an issue that caused attachments to be listed as “duplicates” 
   even after all identical attachments had been deleted.

#### 1.3

 * Refactoring PHP to take advantage of WP 4.7’s new hooks for handling bulk actions.
 * Minor improvements to ‘success’ messages displayed after a bulk action has been
   performed on a set of duplicate attachments.
 * When uninstalled, the plugin will now delete the ‘mdd_size’ meta field that it
   adds to attachments. Previously it would only delete the ‘mdd_hash’ field.
 * Minor code cleanup.
 * Bugfix: Fixing an issue that caused the columns on the Manage Duplicates screen(
   File, Author, etc.) to not actually be sortable.
 * Bugfix: Ensuring that the ‘size’ column added to the main media library (in list
   view only) is styled properly & sortable.

#### 1.2.2

 * Bugfix: The bugfix in 1.2.1 introduced a problem with performing smart deletions,
   so it’s been rewritten. Deduper and the normal Media Library should both work
   as expected now.

#### 1.2.1

 * Bugfix: Eliminating behavior where bulk-deleting media from the media library
   would redirect user to Deduper admin page after performing deletion.

#### 1.2.0

 * Adding sharing tools to help encourage spreading Media Deduper love!
 * Refactoring CSS into standalone CSS file.
 * Refactoring JS into standalone JS file.
 * Bugfix: Altering notification message shown when indexing is manually aborted
   to indicate that indexing is not yet complete.

#### 1.1.1

 * Fixing a bug that would list all media as duplicates if all duplicates share 
   a media file

#### 1.1.0

 * Implemented a check to differentiate posts that are duplicates because they actually
   share a single media file, and updated the UI to allow for controlling the display
   of these posts.
 * Fixed a notice-level error for undefined $_GET variable

#### 1.0.3

 * Fixed a bug with “Are you sure you want to do this?” appearing due to overly-
   aggressive referrer checking

#### 1.0.2

 * Fixed a bug manifesting when bulk-deleting no items or running HHVM/PHP7

#### 1.0.1

 * Fixed a bug where Media Deduper didn’t want to be uninstalled
 * Fixed a bug where bulk deletion didn’t always work
 * Fixed a minor notice-level PHP error

#### 1.0.0

 * Implemented the ‘Delete Preserving Featured’ option to prevent inadvertently 
   wiping out media assets in use as post thumbnails
 * Enhanced indexing to include the file size
 * Added a sortable ‘filesize’ column to the duplicates table that leverages the
   aforementioned size data
 * Refined screen option to control number of media posts shown per page
 * Included a new help tab to provide more information regarding the plugin, indexing,
   and deletion
 * Various bugfixes, including one that broke bulk deletion

#### 0.9.3

 * Implementing Screen Options tab to control number of items displayed. This is
   a precursor to some other UI enhancements (hopefully).

#### 0.9.2

 * Misc cleanup

#### 0.9.1

 * Rewriting SQL query for finding duplicates to be massively more performant. Props
   to user gizmomol for the rewrite!

#### 0.9

 * Initial public release.

## اطلاعات

 *  نگارش **1.5.9**
 *  Last updated **5 ماه پیش**
 *  نصب‌های فعال **9,000+**
 *  نگارش وردپرس ** 4.3 یا بالاتر **
 *  Tested up to **6.9.4**
 *  زبان
 * [English (US)](https://wordpress.org/plugins/media-deduper/)
 * Tags
 * [admin](https://fa.wordpress.org/plugins/tags/admin/)[attachments](https://fa.wordpress.org/plugins/tags/attachments/)
   [media](https://fa.wordpress.org/plugins/tags/media/)[upload](https://fa.wordpress.org/plugins/tags/upload/)
 *  [نمایش پیشرفته](https://fa.wordpress.org/plugins/media-deduper/advanced/)

## امتیازها

 3.8 از 5 ستاره.

 *  [  امتیاز 26 5-ستاره     ](https://wordpress.org/support/plugin/media-deduper/reviews/?filter=5)
 *  [  امتیاز 3 4-ستاره     ](https://wordpress.org/support/plugin/media-deduper/reviews/?filter=4)
 *  [  امتیاز 2 3-ستاره     ](https://wordpress.org/support/plugin/media-deduper/reviews/?filter=3)
 *  [  امتیاز 4 2-ستاره     ](https://wordpress.org/support/plugin/media-deduper/reviews/?filter=2)
 *  [  امتیاز 8 1-ستاره     ](https://wordpress.org/support/plugin/media-deduper/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/media-deduper/reviews/#new-post)

[مشاهده همه بررسی‌ها](https://wordpress.org/support/plugin/media-deduper/reviews/)

## مشارکت کنندگان

 *   [ cornershop ](https://profiles.wordpress.org/cornershop/)
 *   [ Xavier Serrano ](https://profiles.wordpress.org/xavierserranoa/)
 *   [ kenjigarland ](https://profiles.wordpress.org/kenjigarland/)

## پشتیبانی

چیزی برای گفتن دارید؟ نیاز به کمک دارید؟

 [مشاهده انجمن پشتیبانی](https://wordpress.org/support/plugin/media-deduper/)