This project is not covered by Drupal’s security advisory policy.
An alternative to this module is the filehash module with secure releases for D9, D8 and D7
The D7 version is operational. The D8 port is incomplete.
Media entities (D8) / File entities (D7) - of type image should be unique.
This module aims to deal with cleanup of non-unique identical copies of images (or other types of files) by evaluating a sha1 hash of the file , should there be more than one of the same hash key then process it (prompt for delete or fully auto process the delete).
For D8, a D8 version is in progress but needs work, a branch has been created, for collaboration follow this D8 port progress tracker.
In short, media_unique removes extra copies of identical images.
Why a new module? I recently imported about 10000 family photos and videos into my private Drupal photo site and I noticed that I had many duplicate copies of images. Rather than sort through 10000 images one by one, a fellow php guru colleague suggested using sha1 keys to test for uniqueness. The end result: a project called 'media_unique'.
This module did a very fast cleanup of 1850 duplicate copies of images I had. Much faster than manual cleanup. Now instead of 10000 images I have 8000 or so unique images. It also can also optionally check other types of files.
What would have taken me days or weeks or months of tedius manual content work is done in a batch operation by media_unique in a matter of minutes.
media_unique is ready for use right now on D7 , however I recently discovered the filehash module , please try this first before media_unique.
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.Maintenance fixes only
Considered feature-complete by its maintainers.- Project categories: Media
- Created by joseph.olstad on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
