Gallery Problem - Incorrect Width and Height in EXIF Data Affecting PhotoSwipe Display #1694
-
Operating systemWin 7 Publii version0.46.1 Issue typeApplication Bug descriptionI have a problem with portrait and lengthwise pictures in the gallery. The portrait images are always shown stretched across the entire width. What is the problem and how can you solve the problem if you want to use different portrait and landscape photos in the gallery and then display them enlarged. Sample side: http://m-learning.info/2.html Steps to reproduceNo response Relevant log outputNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
What theme are you using? |
Beta Was this translation helpful? Give feedback.
-
Simple... i tried all versions |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
It's not a theme issue or, to be more specific, the PhotoSwipe script. The problem is with the image's EXIF data, precisely the width and height recorded in the EXIF info.
For example, look at this:
The EXIF data of your original image shows the wrong width and height, it should be the other way around.
Now, this is how it should look:
Below, download the image with the corrected width/height EXIF data and see that it will now render well in the gallery.