X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   elongated thumbnails (https://forum.x-cart.com/showthread.php?t=36181)

kvedros@cox.net 12-14-2007 10:15 AM

elongated thumbnails
 
I uploaded my thumbnails and they're elongated by a 3X factor. Any ideas on why this is?

jdiehl 12-14-2007 10:16 AM

Re: elongated thumbnails
 
Is it something in your code that displays the image setting the width and height really odd. Maybe you changed the width on the display template?

kvedros@cox.net 12-14-2007 10:26 AM

Re: elongated thumbnails
 
I previuosly loaded thumbnails that were 60 px X 160. They were enlarged and so after reducing the default 125 px width in general settings it worked. I reformatted the images to 125 px width and changed the general settings back to 125 px and it stretches the thumbnails.

jdiehl 12-14-2007 10:29 AM

Re: elongated thumbnails
 
I'm checking both of your stores that are hosted with us and I'm not seeing the issue you are having. Could you be more specific about where the problem is happening.

kvedros@cox.net 12-14-2007 10:34 AM

Re: elongated thumbnails
 
http://www.archturnings.com/home.php?cat=253

jdiehl 12-14-2007 11:04 AM

Re: elongated thumbnails
 
The height of the image is being set in the HTML as 568 with a width of 125. Are you sure that your templates aren't expressly defining this 568 value? Or on your admin side when you look at your images that are stored in the system what value of height and width are stored in there?

kvedros@cox.net 12-14-2007 11:14 AM

Re: elongated thumbnails
 
What is weird is that my product image is 568 high and my thumbnail is 125 wide so it seems to be borrowing from both on the customer side. They display correctly in the admin side.

jdiehl 12-14-2007 11:17 AM

Re: elongated thumbnails
 
Well if you are running 4.1.9 you can define a separate thumbnail file from your regular product image, so why don't you just resize the image to be proportional at a width of 125 px, then the height will match. It seems as though your X-Cart isn't resizing proportionally.

The other option would be to edit your template files so that it doesn't even define the height, only the width, in which case the browser would resize proportionally just fine.

Looker1 12-14-2007 11:23 AM

Re: elongated thumbnails
 
Just went through this last night- not sure if it is the perfect fix but seems to work for me in 4.1.8

Any gurus see any concerns with what I did here? Not sure if this is breaking any rules of logic.

http://forum.x-cart.com/showthread.php?t=36154

kvedros@cox.net 12-14-2007 11:34 AM

Re: elongated thumbnails
 
Looker1
In my case all thumbnails are all formatted to 125 wide X 220. It has taken my thumbnail width and my product image length and combined them

kvedros@cox.net 12-14-2007 11:35 AM

Re: elongated thumbnails
 
Jason
What file would I edit?

jdiehl 12-14-2007 11:43 AM

Re: elongated thumbnails
 
Take a look at skin1/customer/main/products_t.tpl I believe, and look for the call to the thumbnail display. You should see it specifying the width and the height in the call, it might be calling this incorrectly.

kvedros@cox.net 12-14-2007 11:48 AM

Re: elongated thumbnails
 
Jason
Wonderful it worked. I commented out "height" in /product_thumbnail.tpl. thanks for your help.

jdiehl 12-14-2007 11:49 AM

Re: elongated thumbnails
 
Glad I could help.


All times are GMT -8. The time now is 06:31 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.