Images are cut off in YooGallery
If you have a YooGallery implemented and when viewing the images or photos are being cut off - here's a tip.Here's an example of what an image looks like in YooGallery
But the actual image looks like this.
This is an easy fix - work around - twiddle...
I'm sure there is a code work around, but if you are like me, I just want it to work.
YooTheme's YooGallery sizes the image in the display area based on the first image in the directory.
So - to fix it do this...
There are two ways to fix the image display.
The first one is to ensure every photo has the exact same dimension.But you may some oriented in landscape and some portrait.
The second way is to set the largest image first.Reorder the images in the directory defined in YooGallery module.
Take the largest image and make it the first file listed in the directory.
The images are sorted in ASCII alphabetic order.
numbers first (0,1,...9)
then Captial letters (A, B, C, ... Z)
then lower case letters. (a, b, c, ... z)
So, to force the largest image as the first, rename the image file to:
AAAAA.jpg (zeros not the letter O)
Then be sure to delete the thumbnails and refresh the cached images.
This solution is not elegant, but it works... ;)
Did this help?