Drupal is a registered trademark of Dries Buytaert
drupal 11.3.8 Update released for Drupal core (11.3.8)! drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! linkit 7.0.14 Minor update available for module linkit (7.0.14). masquerade 8.x-2.2 Minor update available for module masquerade (8.x-2.2). video_embed_field 3.1.0 Minor update available for module video_embed_field (3.1.0). bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). editoria11y 3.0.1 Minor update available for module editoria11y (3.0.1). geofield_map 11.1.9 Minor update available for module geofield_map (11.1.9). domain 3.0.0 Major update available for module domain (3.0.0). ai 1.2.15 Minor update available for module ai (1.2.15). ai 1.3.4 Minor update available for module ai (1.3.4). leaflet 10.4.7 Minor update available for module leaflet (10.4.7).

media_duplicates

2,678 sites Security covered
View on drupal.org

This module allows the comparison, detection and restriction of duplicate media
entities within a site.

Cleaning up the duplicate media items is currently outside the scope of this module. That's because it's a hard task. Depending on media usage in fields, usage across translations, usage in token embedded media, usage in config (blocks, etc).

Installation

  • To install this module, composer require it, or place it in your modules folder and enable the module.
  • Generate initial checksums if you have existing media items. You can use the form linked from the status page or run the drush media-duplicates:checksums:rebuild command. (Currently only supports Drush 9+)

Usage

  • Install this module as early as possible in your development process to reduce any technical debt you later have to clean up.
  • Module allows progressive enhancement by having settings that
    • Allow you to generate a report but don't restrict duplicates.
    • Restrict new duplicates but still allow you to save existing.
    • Restrict all duplicates, both new and existing.
  • Use in conjunction with Entity Usage to help find where duplicates are used and consolidate.

Plugin architecture

This module allows media type developers to implement a MediaDuplicatesChecksum plugin to integrate with this module.

Alternatives

Activity

Total releases
3
First release
Mar 2026
Latest release
1 month ago
Release cadence
1 day
Stability
33% stable

Release Timeline

Releases

Version Type Release date
2.0.4 Stable Mar 19, 2026
3.0.0-alpha1 Pre-release Mar 19, 2026
3.x-dev Dev Mar 17, 2026