Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Imported Thumbnails Distorted

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-29-2005, 12:25 PM
 
laureon laureon is offline
 

Senior Member
  
Join Date: Oct 2003
Posts: 171
 

Default Imported Thumbnails Distorted

Hi,

I have imported some 50x50 images to be used as thumbnails for my products, however when they are displayed in the products list, they are distorted to '50x63'. The x y dimensions of the images are recorded in the products table correctly and the images that I manually added are not distorted. If anyone has any advise on what might be causing the problem it would certainly be apprecaited.

If I remove the following code from the 'product_thumbnail.tpl' the images are displayed as 50x50 as intended:

Code:
{if $image_x ne 0} width="{$image_x}"{/if}{if $image_y ne 0} height="{$image_y}"{/if}

Thanks in advance
__________________
X-Cart Gold Version: 4.0.17
X-Configurator
X-AOM
X-FancyCategories
X-RMA
X-Offers
Reply With Quote
  #2  
Old 01-30-2005, 08:53 AM
 
laureon laureon is offline
 

Senior Member
  
Join Date: Oct 2003
Posts: 171
 

Default

Any ideas? I'm sure it is something very small... thanks
__________________
X-Cart Gold Version: 4.0.17
X-Configurator
X-AOM
X-FancyCategories
X-RMA
X-Offers
Reply With Quote
  #3  
Old 01-30-2005, 12:13 PM
 
mffowler mffowler is offline
 

X-Adept
  
Join Date: Mar 2003
Location: Melbourne, Australia
Posts: 811
 

Default

What is your thumbnail width in General Setting/Appearance Options? If you have a fixed width (50), you might try setting it at 0. The if statement in there basically won't change your image if that is set to 0.

"Thumbnail width in the products list: 0". That may work ...

- Mike
__________________
4.1.9
Reply With Quote
  #4  
Old 01-30-2005, 12:56 PM
 
laureon laureon is offline
 

Senior Member
  
Join Date: Oct 2003
Posts: 171
 

Default

Mike,

I have done as you suggested and the images are left at their respective sizes. Is there any advantage of having the 'x' and 'y' dimensions of images defined, or is it simply intended to resize the images?

Thanks!
__________________
X-Cart Gold Version: 4.0.17
X-Configurator
X-AOM
X-FancyCategories
X-RMA
X-Offers
Reply With Quote
  #5  
Old 01-30-2005, 01:44 PM
 
mffowler mffowler is offline
 

X-Adept
  
Join Date: Mar 2003
Location: Melbourne, Australia
Posts: 811
 

Default

Generally, X-Cart works with a product image and uses the same image scaled down for the thumbnail. As a method, it isn't effective. That is one reason there are at least a dozen major product image mods in the forum.

You most likely are using the same thumbnail and product image, the inaccurately scaling the image. I suspect that X-Cart with improve product images in the versions to come.

- Mike
__________________
4.1.9
Reply With Quote
  #6  
Old 01-30-2005, 01:59 PM
 
laureon laureon is offline
 

Senior Member
  
Join Date: Oct 2003
Posts: 171
 

Default

Thanks again Mike,

I think i've solved my thumbnail image problem
__________________
X-Cart Gold Version: 4.0.17
X-Configurator
X-AOM
X-FancyCategories
X-RMA
X-Offers
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:18 AM.

   

 
X-Cart forums © 2001-2020