PDA

View Full Version : Image gallery auto detection of image sizes


nbento
02-10-2009, 07:04 PM
Hi
I'm running image gallery on the site, but I noticed that Im forced to have a image size (set on preferences), which is causing me a BIG problem.
Since I post regarding cars, I might find images qith 550 width and 1024 or even bigger.
Now I need to have lightbox or image gallery set to autodtet the image sizes... is this possible?

Regards
Nelson

Micha
02-11-2009, 08:38 AM
Sure thing :)
Find the template that you use for image gallery (box/plugin_image_gallery_lightbox.tpl or box/plugin_image_gallery_stripe.tpl), and change tho following line from

<a href="thumbnail.php?file={image.real_path}&amp;size=article_ large" rel="lightbox[gallery]" title="{image.title}">

to

<a href="files.php?file={image.real_path}" rel="lightbox[gallery]" title="{image.title}">

That way you'll have actual image size loaded in lightbox instead of re-sized one.

Hope that helps.

nbento
02-11-2009, 09:47 AM
I dont have that 1sr line on the plugin_gallery_stripe.tpl
Im using template one.


Never mind found it on plugin_image_gallery_lightbox.tlp

Impaler
03-05-2011, 08:46 PM
tried it on Vivvo 4.5.2 worked really well. :) thanks.