[image processing] pwg_representatives May not be Unique #292

Closed
opened 2026-10-04 23:50:53 +02:00 by adam · 1 comment
Owner

Reported by wsloand on 22 Nov 2014 12:14

This likely affects all versions of piwigo.

If two files with the same basename but different extensions are uploaded by ftp + synchronization, then their pwg_representative images may overwrite each other.

Steps to reproduce: 1. Upload file1.tif
2. Create a pwg_representative for file1.tif with an extension 'jpg'
3. Upload file1.cr2
4. Create a pwg_representative for file1.cr2 with an extension 'jpg'

file1.tif's representative now silently is file1.cr2's representative.

Piwigo Bugtracker #3181

**Reported by wsloand on 22 Nov 2014 12:14** This likely affects all versions of piwigo. If two files with the same basename but different extensions are uploaded by ftp + synchronization, then their pwg_representative images may overwrite each other. **Steps to reproduce:** 1. Upload file1.tif 2. Create a pwg_representative for file1.tif with an extension &#039;jpg&#039; 3. Upload file1.cr2 4. Create a pwg_representative for file1.cr2 with an extension &#039;jpg&#039; file1.tif&#039;s representative now silently is file1.cr2&#039;s representative. [Piwigo Bugtracker #3181](http://piwigo.org/bugs/view.php?id=3181) <!-- github-sync-id:97226981 -->
adam closed this issue 2026-10-04 23:50:53 +02:00
Author
Owner

Yes, and that's also the "problem" I encountered when I designed the multiple formats feature (for Piwigo 2.8) see http://piwigo.org/forum/viewtopic.php?id=26087

I was wondering if that was a real problem and other team members confirmed it was not really a problem, compared to the constraint of forcing to change file names.

Yes, and that's also the "problem" I encountered when I designed the multiple formats feature (for Piwigo 2.8) see http://piwigo.org/forum/viewtopic.php?id=26087 I was wondering if that was a real problem and other team members confirmed it was not really a problem, compared to the constraint of forcing to change file names. <!-- github-comment-id:160898293 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#292