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)
-   -   Detailed Image Maximum Size (https://forum.x-cart.com/showthread.php?t=14736)

lyncca 06-22-2005 01:48 PM

Detailed Image Maximum Size
 
Hi there,

Is there a way to write an IF statement to where I can put it in the detailed image code to where if the image is above 500 pixels, it will limit it at 500 pixels, but if it is less then it will not resize it?

I know this is really simple, but I have yet to get a chance to actually learn PHP programming :roll:

Thanks!

lyncca 06-25-2005 05:17 PM

Isn't there any way to do this? :?

By the way, this is version 4.0.12

steveparks 06-27-2005 12:54 PM

image auto-resize
 
Yes, this would be a great feature - and could be done using the GDlib or ImageMagick on the server - but i'm not advanced enough to know how to get xcart to use those libraries.

lyncca 06-27-2005 01:23 PM

Well those would actually resize the image, for now I just want to use code to resize it if possible.

ETInteractive.com 06-27-2005 04:19 PM

Not sure that the detail image sql statement or table holds image_x??

If it does,

{if $images[image].image_x gt 500}
set width to 500
{/if}

i know you can do this for the product.tpl, as image_x is there.


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

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