Joomla tips and tricks for the novice or the hacker. Serving Him by giving back what we have learned.
     
Home arrow Blogs arrow Websites & Templates arrow YooTheme arrow Images are cut off in YooGallery
Images are cut off in YooGallery
 

Views : 1565    


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

Crane photo cut off in YooGallery












But the actual image looks like this.


Correct size but not showing in YooGallery
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:

00000.jpg

Or

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?




   
Quote this article in website
Favoured
Print
Send to friend
Related articles
Save this to del.icio.us

Keywords : YooGallery YooTheme, YooGallery, YooTheme, images cut off, gracehost, narrowpathhosting, geeksforgrace, honoring the Lord


Users' Comments  RSS feed comment
 

Average user rating

   (0 vote)

 

Display 1 of 1 comments

not working

By: piti4ek (Guest) on 15-06-2010 03:51

not working

By: piti4ek (Guest ) on 15-06-2010 03:51

Hey. Good tip, but it doesnt work for me. Yes, if the longest image fo first - its ok for the others, but if others are wider - they will cut off (

 

» Report this comment to administrator

» Reply to this comment...

Display 1 of 1 comments



Add your comment
Name
E-mail
Title  
Comment
 
Available characters: 600
   Notify me of follow-up comments
  Mathguard security question:
C75         R        
8      G    W T   Q17
HLT   BBA   5E6      
T U    G      L   TS6
HSD           7      
   
   



mXcomment 1.0.8 © 2007-2010 - visualclinic.fr
License Creative Commons - Some rights reserved

Your help is a blessing

Enter Amount:

Most Read Articles

Newsletter

Please subscribe to our newsletter.

We will NOT be sending you sales or buy now stuff.

The newsletter will only have technical info. to help you with your web efforts.

Geek Updates


Receive HTML?

Last comments

Removing the ask about this...
hg
thanks google.com
More...
By berta

Images are cut off in...
not working
Hey. Good tip, but it doesnt...
More...
By piti4ek

Product detail gets pushed...
Worked for me
Thanks for posting this...
More...
By Vincent Treanor

How to use a different home...
Web guy
In your menu manager, be sure...
More...
By Jeff Honeyager

How to use a different home...
Joomla Home Page
Thanks for the article. I...
More...
By RoshJay

Geeks for Grace a Narrow Path Hosting Partner
Powered By PageCache
Generated in 0.24717 Seconds