Page 1 of 1

Thumbnail view problem (RocketTheme)

Posted: 15 Sep 2010, 12:02
by allawy
Hi,

I just installed Phoca Gallery today and tested it by creating several categories and uploaded photos via the batch Java uploader. I really like the extension, but I am having a problem with the thumbnail view for both categories and the images.
The first time I view the category list or the images within a category, the thumbnails look small and have the wrong aspect ratio. If I then hit Refresh (F5 only) in the browser, the thumbs display correctly. If I then hit Control-F5, the thumbs look bad again. Also, if I leave the page and come back to it, things look ok. I tried this in both Firefox and IE.

The images I am being given are not all the same size and don't necessarily have the same aspect ratio; different people with different cameras and different processing skills/methods.

So, how can I deal with this? Is this a thumbnail creation issue than can be fixed by changing the settings?

Attached are examples of the gallery states (good and bad,) and snapshots of my settings.

Thanks in advance for any help you can provide.
AM

Examples:
[img=http://img638.imageshack.us/img638/1381 ... ood.th.png]
[img=http://img255.imageshack.us/img255/5302 ... bad.th.png]
[img=http://img259.imageshack.us/img259/3685 ... ood.th.png]
[img=http://img5.imageshack.us/img5/392/categorybad.th.png]

Settings:
in the following album
[img=http://img34.imageshack.us/g/setting16.png/]

Re: Thumbnail view problem

Posted: 15 Sep 2010, 14:59
by Jan
Hi, you should check your Joomla! installation, if there is no plugin or module to e.g. resize images on the site (or template). Try to see if some of loaded javascript is not in conflict with images on your site. Seems like there are some plugins which add width and height parameters to img tags on the site. :idea:

Jan

Re: Thumbnail view problem

Posted: 15 Sep 2010, 21:31
by allawy
Jan,

Thank you for your insight, very helpful. Good news; it is fixed.
I had forgotten to mention in my initial post that I am using a RocketTheme template (Omnicron) - sorry. When you said that something is injecting width and height attributes to the img tags, I started my trusted Firebug and looked at the bad img tags, and sure enough they had a height of 35px and width of 194px! First, I went through the list of plugins that I thought might interfere with images, disabled a few but no fix. I then thought that it might be a template's code/feature. I remembered that there is a SmartLoad feature for delayed image loading (performance enhancement); I disabled it and viola the images load correctly no matter how I refresh the browser.

The Final Solution:
For those using RocketTheme templates and still want to use the SmartLoad feature, they will need to add the phocagallery parent tag id to the "XPath Ignores" field of the SmartLoad feature in the templates settings page. The "XPath Ignores" field takes comma-delimited xpath values, so I added ",#phocagallery" to it. Phoca galleries now work even with the SmartLoad feature enabled.

Thanks Jan for the speedy response, much appreciated.. I will be making a donation for this excellent extension and speedy support...

Regards :)
Ali M.

Jan wrote:Hi, you should check your Joomla! installation, if there is no plugin or module to e.g. resize images on the site (or template). Try to see if some of loaded javascript is not in conflict with images on your site. Seems like there are some plugins which add width and height parameters to img tags on the site. :idea:

Jan

Re: [Solved] Thumbnail view problem (RocketTheme)

Posted: 15 Sep 2010, 22:09
by Jan
Ok