Use hash of original images to check for duplicate uploads #776

Closed
opened 2026-10-05 00:16:53 +02:00 by adam · 3 comments
Owner

It appears I am allowed to upload duplicate photos. I was hoping Piwigo would check for duplicates, but it seems it does not. I think one way to do this, as Mediawiki does, is to create a hash for the original image. Then for every image put into the upload queue, create a hash and check if that hash exists in the array of existing hashes.

I believe I'm using Piwigo version 2.7.4. Note this is a "one-click install" on a shared Dreamhost server.

It appears I am allowed to upload duplicate photos. I was hoping Piwigo would check for duplicates, but it seems it does not. I think one way to do this, as Mediawiki does, is to create a hash for the original image. Then for every image put into the upload queue, create a hash and check if that hash exists in the array of existing hashes. I believe I'm using Piwigo version 2.7.4. Note this is a "one-click install" on a shared Dreamhost server. <!-- github-sync-id:314478677 -->
adam closed this issue 2026-10-05 00:16:53 +02:00
Author
Owner

The relevant checksum already exists, it just needs to be checked at upload time.

But maybe it's enough that one can search for duplicates after upload? That's already built into the batch manager.

The relevant checksum already exists, it just needs to be checked at upload time. But maybe it's enough that one can search for duplicates after upload? That's already built into the batch manager. <!-- github-comment-id:412039131 -->
Author
Owner

A slightly related tweak: #910

A slightly related tweak: #910 <!-- github-comment-id:412046080 -->
Author
Owner

Don't know yet how to implement that, but a quick action to avoid duplicates at upload, or remove them right after upload, would be useful.

Don't know yet how to implement that, but a quick action to avoid duplicates at upload, or remove them right after upload, would be useful. <!-- github-comment-id:529914722 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#776