Height of gallery thumbs differing resulting in empty spaces
Since one of the last Piwigo updates I encounter some strange behavoir in the gallery overview:
The thumbs-images are displayed with different values for height so that there are no complete rows of images. Instead there are empty spaces, very irritating.
In the example described here there are 49 images
Image 1 - 20: height=88
Image 21 - 30: height=85
Image 31 - 42: height=82
Image 43 - 49: height=82
The height varies between 88 and 82 px. The height value in the li element and the img element are not always the same, they differ for some images by +/- 1 or +/- 2.
As this situation has not been seen in the past, it is probably caused by one of the latest updates.
There is no pattern seen in the data, indicating any reason for the differences in height
The following data can be provided to demonstrate the issue: 240829 Piwigo gallery height mismatch.jpg
a screenshot of the gallery with magnifications of the corners, where height differs
240829 Piwigo gallery.txt
HTML extract out of the gallery
240829 Piwigo gallery-X.xlsx and 240829 Piwigo gallery-X.pdf
Excel sheet with the following columns:
A number
B-I data from the HTML extract
K-N data from the database table images
P-Q data from the files under ...piwigo/_data/i/upload/...
It could be, that the effect is generates by JavaScript, because if changing the width of the window the effect changes, at some width vanishing, at other widths even worse.
The installation has the following characteristics:
Piwigo 14.5.0
Installiert auf 3 Februar 2021, vor 3 Jahre 6 Monate 3 Wochen 6 Tage
Betriebssystem: Linux
PHP: 8.2.20 (Info anzeigen) [2024-08-30 23:30:33]
MySQL: 5.7.42 [2024-08-30 23:30:33]
Grafikbibliothek: ImageMagick 6.9.11-60
Größe des Cache 1638.06 Mo berechnet vor 3 Wochen
Theme: Modus
Installed plugins:
Additional Pages
Admin Tools
Community
LocalFiles Editor
### Height of gallery thumbs differing resulting in empty spaces
Since one of the last Piwigo updates I encounter some strange behavoir in the gallery overview:
The thumbs-images are displayed with different values for height so that there are no complete rows of images. Instead there are empty spaces, very irritating.
In the example described here there are 49 images
- Image 1 - 20: height=88
- Image 21 - 30: height=85
- Image 31 - 42: height=82
- Image 43 - 49: height=82
The height varies between 88 and 82 px. The height value in the li element and the img element are not always the same, they differ for some images by +/- 1 or +/- 2.
As this situation has not been seen in the past, it is probably caused by one of the latest updates.
There is no pattern seen in the data, indicating any reason for the differences in height
The following data can be provided to demonstrate the issue:
**240829 Piwigo gallery height mismatch.jpg**
```
a screenshot of the gallery with magnifications of the corners, where height differs
```
**240829 Piwigo gallery.txt**
```
HTML extract out of the gallery
```
**240829 Piwigo gallery-X.xlsx and 240829 Piwigo gallery-X.pdf**
```
Excel sheet with the following columns:
A number
B-I data from the HTML extract
K-N data from the database table images
P-Q data from the files under ...piwigo/_data/i/upload/...
```
It could be, that the effect is generates by JavaScript, because if changing the width of the window the effect changes, at some width vanishing, at other widths even worse.
```
The installation has the following characteristics:
Piwigo 14.5.0
Installiert auf 3 Februar 2021, vor 3 Jahre 6 Monate 3 Wochen 6 Tage
Betriebssystem: Linux
PHP: 8.2.20 (Info anzeigen) [2024-08-30 23:30:33]
MySQL: 5.7.42 [2024-08-30 23:30:33]
Grafikbibliothek: ImageMagick 6.9.11-60
Größe des Cache 1638.06 Mo berechnet vor 3 Wochen
Theme: Modus
Installed plugins:
Additional Pages
Admin Tools
Community
LocalFiles Editor
```

[240829 Piwigo gallery.txt](https://github.com/user-attachments/files/16822345/240829.Piwigo.gallery.txt)
[240829 Piwigo gallery-X.xlsx](https://github.com/user-attachments/files/16822347/240829.Piwigo.gallery-X.xlsx)
[240829 Piwigo gallery-X.pdf](https://github.com/user-attachments/files/16824665/240829.Piwigo.gallery-X.pdf)
<!-- github-sync-id:2498239180 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Height of gallery thumbs differing resulting in empty spaces
Since one of the last Piwigo updates I encounter some strange behavoir in the gallery overview:
The thumbs-images are displayed with different values for height so that there are no complete rows of images. Instead there are empty spaces, very irritating.
In the example described here there are 49 images
The height varies between 88 and 82 px. The height value in the li element and the img element are not always the same, they differ for some images by +/- 1 or +/- 2.
As this situation has not been seen in the past, it is probably caused by one of the latest updates.
There is no pattern seen in the data, indicating any reason for the differences in height
The following data can be provided to demonstrate the issue:
240829 Piwigo gallery height mismatch.jpg
240829 Piwigo gallery.txt
240829 Piwigo gallery-X.xlsx and 240829 Piwigo gallery-X.pdf
It could be, that the effect is generates by JavaScript, because if changing the width of the window the effect changes, at some width vanishing, at other widths even worse.
240829 Piwigo gallery.txt
240829 Piwigo gallery-X.xlsx
240829 Piwigo gallery-X.pdf