![]() |
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 |
Any ideas? I'm sure it is something very small... thanks
|
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 |
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! |
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 |
Thanks again Mike,
I think i've solved my thumbnail image problem :-) |
All times are GMT -8. The time now is 08:46 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.