Closed (fixed)
Project:
Blazy PhotoSwipe
Version:
8.x-1.2
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Oct 2020 at 16:34 UTC
Updated:
14 May 2021 at 19:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jacklee0410 commentedComment #3
gausarts commentedThanks. Feel free to share solutions. I don't currently work on it, sorry.
Comment #4
gausarts commentedThank you.
I couldn't reproduce it with large images.
I could reproduce it with small images.
Potential solutions:
So the real solution is:
The reason, thumbnail displays determines the actual displays due to
opts.getThumbBoundsFnaka the thumbnail zoom animation:https://git.drupalcode.org/project/blazy_photoswipe/-/blob/8.x-1.2/js/bl...
The last potential solution, comment/ disable the
opts.getThumbBoundsFnat your theme override.This appeared to have nothing to do with the module unless proven otherwise. Feel to provide patches if you find the culprit.
Please let me know if still an issue.
Comment #5
gausarts commentedComment #6
timlie commentedHi gausarts,
For me this is triggered by updating to latest blazy:^2.2
First I thought it was because of updating to blazy_photoswipe:^1.2 but issue was still there when downgrading to 1.1.
After downgrading blazy, the distortion is gone.
I use an image style which only scales the width (for the "lightbox image style)" so we have no cropping on landscape or portrait images when showing in the photoswipe "lighbox".
Now when using blazy:^2.2 images shown in the photoswipe lightbox are distorted.
If I change to an image style which has fixed dimensions for width and height (cropping) then the image is displayed correctly.
Is there a way to update to blazy:^2.2 and stay with a scaled width image (so no cropping is needed)?
Thanks!
Comment #7
gausarts commentedThanks for tracking down the issue.
This should narrow down the culprit, then.
I will see if anything I can narrow down more to fix it unless you beat me to it.
Comment #8
gausarts commentedI think I found the culprit:
https://git.drupalcode.org/project/blazy/commit/9c68c7f#ab86487c64bd66e0...
This should be reverted here: #3211636: Regressions with lightbox dimensions
Please follow up there. And thanks again for helpful info. Much appreciated.
Comment #9
gausarts commentedThe fix was in #3211636: Regressions with lightbox dimensions. Feel free to re-pen if still an issue. Thanks.
Comment #10
timlie commentedHi gausarts, thanks for the really fast follow up on this issue.
For me this does not seem fixed. The first image (from a gallery) in the photoswipe lightbox is shown correctly but the following images take over the dimensions from the first, which makes them distorted again. When changing images from place in the gallery, its always the first one which is correct all the others take over the dimensions.
Thanks!