If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
August 14, 2012 at 5:26 am #15324
I tried changing the js code on the pretty gallery that you suggested in another thread to avoid the horizontal squashing of pics in the pop-up galleries:
But changing the height or width values in the js/jquery.prettyPhoto.js file did not work.
Could you please advise a little more detail so I can get this right. I’m sure I’m missing something vital here that will be obviuos to you.
JiwanAugust 14, 2012 at 8:08 am #87063
It’s quite strange, the horizontal squashing of images only happens at some internet webpage ratios.
At fullscreen 1920×1320 it squashes horiztonally, but if webpage window is resized it displays correctly.
Is this something to the way the image is scaled in relation to the browser window??
ThanksAugust 14, 2012 at 8:45 am #87065
I have found that if images uploaded to gallery are less than approx 65% the length of the image’s total width
– then image distorts – gets squeezed.
I can use images that are cropped to this ratio, but what is causing this?
I cropped my current images at 1920 x 1200 and they look fine in the background, but the prettypicture slideshow squeezes them when it pops up.
At 1920×1200 – image gets squeezed in slideshow
At 1920×1440 – no squeezing
At 1920×1320 – no squeezing
ThanksAugust 15, 2012 at 7:32 pm #87066
I marked this thread for Kriesi’s attention. Tbh I’m not familiar with the prettyphoto code and I’m not sure if Kriesi can solve this issue (because it’s a third party script). You can try another lightbox script like http://fancyapps.com/fancybox/ or http://codecanyon.net/item/lightbox-evolution-for-wordpress/119478%29October 25, 2012 at 5:33 am #87067
Hey! Actually I cant tell whats going on here. have you tried contacting the author of the prettyphoto lightbox, he probably knows what could cause this issue :)
KriesiJanuary 2, 2013 at 6:40 pm #87068
I found a correction for this (old) bug on the author forum (http://forums.no-margin-for-errors.com/discussion/3518/bug-in-_fittoviewport) :
In the file js/prettyPhoto/js/jquery.prettyPhoto.js, search the string :
and replace it with :
It worked perfectly for me !January 2, 2013 at 8:39 pm #87069
The topic ‘Flashlight – Gallery – Correcting image squashing by editing JS on prettypicture’ is closed to new replies.