View Single Post
  #2  
Old 04-30-2008, 12:37 AM
  carlisleglass's Avatar 
carlisleglass carlisleglass is offline
 

eXpert
  
Join Date: Aug 2003
Location: Carlisle, UK
Posts: 316
 

Default Re: Constraining height of product thumbnails

I went the next step and rewrote the image.php (thats the file which determines which image is needed to be display).

instead of just showing the image, I use GD (a php module) to redraw the image so it fits within a certain size, so I can specify this in the actual template e.g. ?width=75 also it makes the thumbnail less jaggy.

The coding is a bit messy but works so I can help you with getting a similar thing working but I wouldn't want to give you my actual coding cause it probrably wouldn't mean anything to you.


Also cause all images are getting re-processed when the page is loaded, you need a good server to do it, unless you will get server lag. Carlisle Glass has a dedicated server so this isn't a issue.
__________________
Darren Kierman
Carlisle Glass (http://www.carlisleglass.co.uk/)
... running X-Cart Gold 4.4.5 [unix]
Reply With Quote