To implement srcsets in the new version of the PhotoSwipe skin, I need to know the dimensions of the largest image in the set.
I use now this:
data-pswp-width="${imageWidth}" data-pswp-height="${imageHeight}"
but that are not the dimensions of the largest image in the set, unless the largest scale is 1.
Is there a simple method to get the dimensions of the largest image in the set?
I have another problem for the implementation:
The current implementation of the srcsets generates a srcset string with the largest image first and with the smallest image last.
For the PhotSwipe implementation, The smallest image should be first and the larges image last.
Is there a simple metod to get the current sequence reversed?
BTW: How can I enlarge the size of the image dimension printed in the middle of the image if I use FINEST as logging level? The text is for some sizes unreadable for my eyes has you can see in
this test album.
Edited by: AndreWolff on 29 Jul 2021, 12:38
Edited by: AndreWolff on 29 Jul 2021, 12:48